zzz projects Entity Framework Core EF Core
Home EF Core 5 Articles Knowledge Base Online Examples
  • Home
  • EF Core 5
  • Articles
  • Knowledge Base
  • Online Examples

Articles

4 results for:

Code First

Code First...If you have used Entity Framework in the past, you will probably have heard about the ...Code First... approach....Code First workflow begins with classes that describe the conceptual model and then Entity Framework generate a database from that model automatically....Code first approach offers most control over the final appearance of the application code and the resulting database....To start using Entity Framework, use the following steps;...The first step is to create a new proj...
code-first model approach migration command-line

Database First

Database First...In the previous article, we have seen the migrations to create a database from a DbContext and classes. It is also possible to reverse engineer an existing database into a DbContext and classes, and it is known as ...Database First... approach....We have a simple database created in the previous article, and it contains two tables, ...Order... and ...OrderDetail.......To create a DbContext and classes from the existing database, we will run the ...Scaffold-DbContext... command i...
database-first model approach

Explicit Values

Explicit Values...Explicit Values for Generated Properties...A property whose value is generated either by Entity Framework or the database when the entity is added or updated is known as generated property. In some cases, you might want to set an explicit value for a generated property, rather than having one generated....Here is a simple model which contains a single ...Order... entity....public class Order { public int OrderID { get; set; } public int CustomerID { get; set; } publ...
code-first fluent-mapping model

Fluent API

Fluent API...Fluent API specify the model configuration that you can with data annotations as well as some additional functionality that can not be possible with data annotations....In Entity Framework Core, the ModelBuilder class acts as a Fluent API....We can configure many different things by using it because it provides more configuration options than data annotation attributes....Data annotations and the fluent API can be used together, but precedence of ...Fluent API > data annotations > d...
code-first fluent-mapping model

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79