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

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -