Like designing a table schema but using C# classes instead of SQL.
An entity is a plain C# class (POCO). EF Core convention: Id property → primary key. String → varchar(max). Decimal → decimal(18,2) with fluent config.
> Product → table "Products" > Id → int PK IDENTITY > Name → nvarchar(max) > Price → decimal
Like designing a table schema but using C# classes instead of SQL.
An entity is a plain C# class (POCO). EF Core convention: Id property → primary key. String → varchar(max). Decimal → decimal(18,2) with fluent config.
> Product → table "Products" > Id → int PK IDENTITY > Name → nvarchar(max) > Price → decimal
Sign in to cast your vote
Sign in to share your feedback and join the discussion.