[Entity Framework] DBContext API – Validation API (2) – Validating Multiple Entities

Validating a single entity object is is quite useful in a web applications. In most web applications, the entity object is processed as soon as it is added or modified. But in some applications, the batch processing can be a better option. In a batch mode, you need to deal with multiple entity objects.

Continue reading

[Entity Framework] DbContext API – DbContext Class

The main controller of EF(Entity Framework) is “System.Data.Objects.ObjectContext” class. When Code First was introduced, “DbContext” was also introduced.

System.Data.Entity.DbContext” is a stripped-down version of ObjectContext. DbContext makes developers to use more frequently used features more easily. When you use Code First, you will use DbContext too.

Continue reading