This question is locked. New answers and comments are not allowed.
Hi, All
I saw the old ORM API, I can get the identity data from database:
scope.Transaction.Begin();
Customer c = new Customer();
c.Name = "Smith";
c.CustomerNo = 34567;
scope.Add( c );
// during the Add() call, an object identifier
// is assigned to the new Customer object
IObjectId id = scope.GetObjectId( c );
scope.Transaction.Commit();
But how can i do like this using the new ORM API
context.get.....???????
Any one can give me some suggestion?
Thanks a lot!!!
Byland
I saw the old ORM API, I can get the identity data from database:
scope.Transaction.Begin();
Customer c = new Customer();
c.Name = "Smith";
c.CustomerNo = 34567;
scope.Add( c );
// during the Add() call, an object identifier
// is assigned to the new Customer object
IObjectId id = scope.GetObjectId( c );
scope.Transaction.Commit();
But how can i do like this using the new ORM API
context.get.....???????
Any one can give me some suggestion?
Thanks a lot!!!
Byland