Trying to set the default value of a datetime field to take current time. In SQL's field designer i'd use getdate(). What should i use in Entity Framework's designer?
thx
Set 'StoredGeneratedPattern' to Computed
against the field in the EDMX.
You still need the default value in SQL Server though, the above setting will ensure EF honour's that.
Building upon RPM1984's answer:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With