Archivi tag: EF6

Entity Framework Many to Many join

If you use Entity Framework 6 (EF) design first to create the domain classes if you have a relationship many to many without any extra field inside the join table, EF will avoid to create the join table model. On … Continua a leggere

Pubblicato in c#, Entity Framework, SQL | Contrassegnato , , , , | Lascia un commento

Join in Linq, Join in Entity Framework

There are two way to do a join in a query with linq. Using Join Using the relationship property I tried both ways and the SQL generated by Entity Framework (EF6) is the same, so choose what you prefer.

Pubblicato in c#, Entity Framework | Contrassegnato , , | Lascia un commento

Entity Framework update entity and childs entities, Bulk Delete part 2

In the previous post I’ve explained how to perform a single update, but what I’ve to do If I need to update a master entity and related child? As I’ve explained to update my model I use the 3rd method: … Continua a leggere

Pubblicato in c#, Entity Framework | Contrassegnato , , , | Lascia un commento

Entity Framework update without select part 1

To update an entity in EF6 threre are many methods. Working with other people I noticed that unfortunately many developer don’t think what the ORM will do on DB to perform the update. I found it also in many example … Continua a leggere

Pubblicato in c#, Entity Framework | Contrassegnato , | Lascia un commento