EF Core

EF Core 5

  • EF Core 5 does not work with .net framework. It works with .net core 3.0 and above

Many to Many Relationships

  • EF core can handle a simple many to many relationship without including a class that represents the associative table. All you need to do is add navigation properties between the two classes that have a many to many relationship.

    • for a more complex many to many relationship, a class will need to be created to represent the associate table. In addition, the OnModelCreating must be updated to define the many to many relationship. Use fluent methods: HasMany, WithMany, and UsingEntity

Bulk Operation

  • it will not work when working with less than 4 insertion/update
    • example of increasing and decreasing batch size


Comments

Popular posts from this blog

Adding CKEditor 4 to Angular

Using @CurrentIteration with TFS API