Hi Brian,
If you are using Adapter Template (copied from LLBLGenPro User Reference Manual):
public bool SaveEntity(SD.LLBLGen.Pro.ORMSupportClasses.IEntity2 entityToSave, bool refetchAfterSave)
Member of SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase
Summary:
Saves the passed in entity to the persistent storage. If the entity is new, it will be inserted, if the entity is existent, the changed entity fields will be changed in the database. Will do a recursive save. Will pass the concurrency predicate returned by GetConcurrencyPredicate(ConcurrencyPredicateType.Save) as update restriction.
Parameters:
entityToSave: The entity to save
refetchAfterSave: When true, it will refetch the entity from the persistent storage so it will be up-to-date after the save action.
Returns:
true if the save was succesful, false otherwise.
Remarks:
Will use a current transaction if a transaction is in progress
For example:
// start a transaction
adapter.StartTransaction(IsolationLevel.RepeatableRead, "TestTrans");
// you are doing things here
//....
// save data and automatically update with the entity that your DB identity just generated
adapter.SaveEntity(customer, true);
// ... doing other things...
// persist changes...
adapter.Commit();
If you are using SelfServicing Template, when you YourEntity.Save(), YourEntity automatically will be updated with the just generated identity value.
P.S. for future posts, please provide more info about your scenario (http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=9076) so we can help you in the better way