I am Creating a table in SSMS with the Columns required for the Table and also with the Entitydata mandatory fields Like Id, CreatedAt, UpdatedAt, Version, Deleted.
And while setting the data through my application I am having Issue Like:
Cannot set CreatedAt Field as Null.
I am Getting this Issue if I am giving CreatedAt a hardcoded value as well:
Cannot insert the value NULL into column 'CreatedAt', table 'Database.dbo.Table_Name'; column does not allow nulls. INSERT fails. The statement has been terminated.
I expected that it should not throw any exception and set the value to the database.