Top "Fluent-interface" questions

Refers to a practice of coding object-oriented APIs with the aim of improving readability of the interface, normally implemented using method chaining.

Method chaining - why is it a good practice, or not?

Method chaining is the practice of object methods returning the object itself in order for the result to be called …

oop fluent-interface method-chaining
Entity Framework Code First Fluent Api: Adding Indexes to columns

I'm running EF 4.2 CF and want to create indexes on certain columns in my POCO objects. As an example lets …

c# entity-framework-4 ef-code-first data-annotations fluent-interface
EF6.0 "The relationship could not be changed because one or more of the foreign-key properties is non-nullable"

If I try to delete a "child" row I always get an exception. Here is a snipset: using (var context = …

entity-framework fluent-interface
Unable to determine the principal end of an association - Entity Framework Model First

I have created Entity Data Model in Visual Studio. Now I have file with SQL queries and C# classes generated …

c# entity-framework fluent-interface
How to store double[] array to database with Entity Framework Code-First approach

How can I store an array of doubles to database using Entity Framework Code-First with no impact on the existing …

c# .net entity-framework ef-code-first fluent-interface
Creating Unique Index with Entity Framework 6.1 fluent API

I have a column "Name" that must be unqiue. No foreign key or anything like that. EF 6.1 finally supports creating …

c# .net entity-framework entity-framework-6 fluent-interface
Entity Framework Code First Mapping Foreign Key Using Fluent API

I have the situation where a User can have several addresses. Accordingly, I have an ICollection on my user class. …

entity-framework ef-code-first entity-framework-4.1 fluent-interface
How to do a PHP nested class or nested methods?

How can I do this in PHP $myDBClass->users()->limit(5);//output you limited users to 5 $myDBClass->…

php design-patterns fluent-interface
101 tutorial for setting up nhibernate?

I am looking for a tutorial on setting up nhibernate. There seems to be few out there, but most are …

nhibernate fluent-interface