I have something like the following currently being used:
ProductEntity product = new ProductEntity();
product.price = productprice;
product.name = productname;
product.Save();
But i need to get the new productid (PK) when the record is created returned immediately following the save method. Is this possiable?
For example I would like do do something like the following:
I have something like the following currently being used:
ProductEntity product = new ProductEntity();
product.id = productid;
product.name = productname;
int newProductId = product.Save();