Having issues with validation in an MVC application using .Net 4.6.1 and EF 6.0.0

  • Thread starter Thread starter Carl H. Cromer
  • Start date Start date
C

Carl H. Cromer

Guest
Okay My application is using database first. I create my models from the existing database ... this is a temporal table



1361455.jpg

So I have three columns that are created by the database: RecipientKey, ValidFromTs, ValidToTs. If there is any value in the field it states that I can't insert into a column that has "Generated Always" so I added the DatabaseGenerateAttribute to the model which fixed the issue but now I am getting validation errors.

1361458.jpg

1361459.jpg

Continue reading...
 
Back
Top