c# - newid() as column default value -


i have table uniqueidentifier column. default value or binding should set in order each new row generate new uniqueidentifier?

setting default newid() returns 00000000-0000-0000-0000-000000000000

edit: apparently got wrong, insert done entity framework, , doesn't handle scenario.

entity framework - default values doesn't set in sql server table

newid() should work.

see images below:

enter image description here

enter image description here

you have issue there.


Comments

Popular posts from this blog

c# - how to use buttonedit in devexpress gridcontrol -

How do you convert a timestamp into a datetime in python with the correct timezone? -

how to display 2 form fields on same line with bootstrap -