Top "Ef-fluent-api" questions

A way to configure Entity Framework beyond its conventions with a method chaining API

How to do a join in linq to sql with method syntax?

I have seen lots of examples in LINQ to SQL examples on how to do a join in query syntax …

linq-to-sql ef-fluent-api
Setting unique Constraint with fluent API?

I'm trying to build an EF Entity with Code First, and an EntityTypeConfiguration using fluent API. creating primary keys is …

c# entity-framework entity-framework-6 ef-fluent-api
One to one optional relationship using Entity Framework Fluent API

We want to use one to one optional relationship using Entity Framework Code First. We have two entities. public class …

c# entity-framework ef-code-first one-to-one ef-fluent-api
Entity Framework Code First - Advantages and disadvantages of Fluent Api vs Data Annotations

When creating a database using Entity Framework code-first, a lot of the database model is can be extracted from the …

entity-framework ef-fluent-api
What is Entity Framework fluent api?

I keep hearing about the Entity Framework fluent-api but I am struggling to find a good reference on this. What …

c# entity-framework orm entity-framework-4 ef-fluent-api
Fluent API, many-to-many in Entity Framework Core

I've searched stackoverflow for a proper solution on generating a many-to-many relationship, using EF Core, Code first and Fluent API. …

c# entity-framework code-first ef-fluent-api
EntityFramework Code First FluentAPI DefaultValue in EF6.X

How can I set the default value using EntityFramework Code First FluentAPI for bool property? Something like: Property(l => …

c# entity-framework ef-code-first ef-fluent-api
How to define Many-to-Many relationship through Fluent API Entity Framework?

Below is my model: public class TMUrl { //many other properties //only property with type Keyword public List<Keyword> …

c# entity-framework many-to-many ef-fluent-api
Mapping object type property to varbinary(MAX) in Entity Framework

I have a situation where I have a type with a property of type object, eg. public class MyType { public …

c# entity-framework wcf ef-fluent-api
Possible to set column ordering in Entity Framework

Is there any possible configuration to set database column ordering in entity framework code first approach..? All of my entity …

c# entity-framework ef-code-first entity-framework-6 ef-fluent-api