I have an existing SQL Server database with tables created via EF Update-Database migration. I have a couple of models that looks like the following:
[Table("ETable")]
public class ETable
{
[Key]
public int Id { get; set; }
// Other properties go here
public DateTime EDate { get; set; }
}
Later on I decided to use DateTime2 globally but learned that I have to drop constraint objects like 'DF_ETable_EDate__######' which are automatically created in order to get rid of error similar to what this post is about when trying to update the database.
The question is, are there any implications with dropping these constraint objects? If it is beneficial to keep them, how do I add them back?