Hi
I am using
July 24 2006 release Version 2.0.0.0 final on Sql 2005 , SelfService
I know that after Save() the entity normally gets updated with the ID of the newly created record. But this is not happening for me since my PK is added using a default constraint using the following code on the DB
ALTER MyTable xyz ADD CONSTRAINT [DF_xyz] DEFAULT (newid()) FOR [MyTableID]
Now If I use the following code,
EntityClasses.MyTable myTable= new EntityClasses.MyTable();
myTable.Name = "blah";
myTable.Age = "blah";
myTable.Save();
Guid g = myTable.MyTableID;
g does not get the ID value. Instead it gets {000000000-000000-00000........}
Is there a way I can get the PK guid of a newly inserted record in the table wich gets updated using the default constraint?
Regards,
Krishna