I am using EF Code First. I heavily use code annotations to specify how the data (model) should be validated. However, often I just need validation at UI layer and be able t
You just need to set Configuration.ValidateOnSaveEnabled = false in your context class before calling SaveChanges().
Configuration.ValidateOnSaveEnabled = false
SaveChanges()
context.Configuration.ValidateOnSaveEnabled = false; context.SaveChanges();