Questions tagged [fluent]

Fluent interface is an API which allows method chaining to make code more readable.

Fluent interface is API which allows method chaining to make code more readable.

1148 questions
0
votes
1 answer

Debugging with laravel Fluent Query Builder

Im building a project in laravel 3 and wondering how you can debug Fluent Query Builder ie. get the error message or the produced SQL in order to see what im doing wrong
Eviro
  • 47
  • 1
  • 5
0
votes
1 answer

Entity framework questions about keywords and relationships

I am EF new learner, i have some questions to ask: 1. I don't understand what does virtual mean in for example one to many, i give an example: one question can have many options for e.g. public class Question { public int QuestionId { get; set;…
0
votes
1 answer

Fluent NHibernate Autmapping Many to Many

I'm trying to learn fluent and I thought I'd start with a simple example. Turns out I must be missing something because fluent keeps trying to create a table twice resulting in "There is already an object named 'Author' in the database." I've got…
Chris Birch
  • 2,041
  • 2
  • 19
  • 22
0
votes
1 answer

Object does not match target type saving a child record with NHibernate and fluent

I have two classes; Contact public class Contact : IDisposable { private String email; private String name; private String address; private Guid recordId; public virtual String Id { get; set; } public virtual String Forename…
Paul S Chapman
  • 832
  • 10
  • 37
0
votes
1 answer

Laravel 4 - Is it possible to extend the DB class?

*Note this is a question regarding Laravel 4, not Laravel 3 (which uses Fluent) Is it possible to extend the DB class in Laravel 4? I've tried something as simple as this: class Content extends DB {} With this in my…
John Mellor
  • 2,351
  • 8
  • 45
  • 79
0
votes
1 answer

Fluent NHibernate HasMany relation with different subtypes of same superclass

I´m using Fluent Nhibernate with automapping and having problem setting up a bi-directional HasMany relationship because of my current inheritance. I simplified version of my code looks like this public abstract class BaseClass { public…
0
votes
0 answers

Why is it that Entity Framework gives the error "Enumeration yielded no results" for typical many-to-many functionality?

Our ASP.NET C# web application is used in the following environment .NET Framework 4 ASP.NET Web Forms. IIS 7 Windows 2008 Visual Studio 2010 .NET IDE C# HTTPS ( SSL ) -Entity Framework 5 In our application, we have the following tables. 1)…
crazyTech
  • 1,379
  • 3
  • 32
  • 67
0
votes
1 answer

Fluent NHibernate Bidirectional Mapping - results in two similar referencing columns

I am trying to implement Bidirectional Mapping with Fluent NHibernate Mapping. Code snippet from Domain classes: public class Template { public virtual int? Id { get; set; } public virtual string Title { get; set; } public virtual…
inutan
  • 10,558
  • 27
  • 84
  • 126
0
votes
1 answer

Map List using Fluent Nhibernate

I need to map List using Fluent Nhibernate. Sample code: public class ReportRequest { public List EntityIds { get { return entityIds; } set { entityIds = value; } } } Please guide. Thank you!
inutan
  • 10,558
  • 27
  • 84
  • 126
0
votes
1 answer

EF 4.3 fluent mapping Intermediate table TPT

I have the following legacy table structure (simplified for this post) The following is my feeble attempt at configuring the Entity: public class EntityConfiguration : EntityTypeConfiguration { public EntityConfiguration() { …
Dan
  • 21
  • 2
0
votes
1 answer

In Laravels Eloquent/Fluent, is there a way to delete a row and everything connected to it through relationships?

Basically, it would be really nice to delete something and have it automatically search out and delete all of the rows and fields connected to it, rather than having to do all of that manually. For example, using eager loading, I can eager load like…
Pete
  • 7,289
  • 10
  • 39
  • 63
0
votes
1 answer

How to use the Page Object Pattern in Play 2.1 test classes?

I am a new user of Play and working through the ToDo List example (the beginner Java-based tutorial). I am now experimenting with adding test cases using the Page Object Pattern…
Philip Johnson
  • 1,463
  • 2
  • 11
  • 20
0
votes
0 answers

Conditional Mapping of POCO entities using Fluent API

I have this POCO class : public class MyClass { public int MyKey { get; set; } public string Name { get; set; } public bool DiscriminatorField { get; set; } public string AnotherInfo { get; set; } } My database model is as such…
Tipx
  • 7,367
  • 4
  • 37
  • 59
0
votes
1 answer

Fluent mapping fails with "Could not determine type..." exception.

In my project I have this mapping: public virtual string LicensePlate { get; set; } public VehicleMap() { Table("VEHICLE"); Id(x => x.LicensePlate, "LICENSE_PLATE"); ... } And when I try to run the app an MappingException is…
graffitiMSX
  • 73
  • 1
  • 8
0
votes
1 answer

Saving Fluent/NHibernate projections

I'm using the Fluent automapper to map my classes and I currently have a base class containing summary information for a person and a derived class containing their full information: interface IPersonSummary { string Name { get; set; } …
Mark Feldman
  • 15,731
  • 3
  • 31
  • 58