Solution 2. Check your DB table and POCO Model class is in sync. If you have some extra properties which you have to use in POCO class but doesn't need in DB Table, then you may create [Not Mapped] Property.Example:

[NotMapped]
publicbool IsEditMode { get; set; }

Solution 3. Are you assigning date column a default value of DateTime.MinValue before add or update operation? If yes, then this may also result into this problem.

Solution 4. Check if you have any decimal field in your table? If yes then you will need to make proper configuration changes OnModelCreating. In order to do so, add following code inside: OnModelCreating method inside your DBContext file.

Most Recent Post

Community Updates

Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.