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 1361455.jpg](https://www.computerhelp.forum/data/attachments/55/55600-8fa97607d82f36d54d3c892ad1c322a6.jpg?hash=j6l2B9gvNt)
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 1361458.jpg](https://www.computerhelp.forum/data/attachments/55/55601-9c5efbe8975c6cf3b77d5a1f4719c9ef.jpg?hash=nF776JdcbP)
![1361459.jpg 1361459.jpg](https://www.computerhelp.forum/data/attachments/55/55602-28ffb8664ebf6851df1e6f8b55892886.jpg?hash=KP-4Zk6_aF)
Continue reading...
![1361455.jpg 1361455.jpg](https://www.computerhelp.forum/data/attachments/55/55600-8fa97607d82f36d54d3c892ad1c322a6.jpg?hash=j6l2B9gvNt)
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 1361458.jpg](https://www.computerhelp.forum/data/attachments/55/55601-9c5efbe8975c6cf3b77d5a1f4719c9ef.jpg?hash=nF776JdcbP)
![1361459.jpg 1361459.jpg](https://www.computerhelp.forum/data/attachments/55/55602-28ffb8664ebf6851df1e6f8b55892886.jpg?hash=KP-4Zk6_aF)
Continue reading...