Is there any EF Model-First approach to populate LastModified column to GetDate()
function in database.
Most of my searches took me to code-first alternatives. But could find Model-First approach. I see StoreGeneratedPattern = Computed in properties window.
Can you please tell me how to use this to populate date using GetDate ()
function in database.
在这里检查我的答案,我相信您需要做同样的事情,因为最终需要从C#代码中设置date属性,或者您可以从数据库级别(例如通过触发器)进行操作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.