Home

EF Core Default Value Mapping

I have a SQL Server database with a table with bit columns that have a default value set.

When LinqPad maps these it looks like it detects the default value and then adds ValueGeneratedOnAdd to the mapping for the entity type. This blocks us from creating a new entity with something other than the default value. Is there a way to disable this? Can we adjust how LinqPad maps our table to the C# entity?

Comments

Sign In or Register to comment.