public virtual void BeforePersist(Net.Vpc.Upa.Record record, Net.Vpc.Upa.Persistence.EntityExecutionContext context) /* throws Net.Vpc.Upa.Exceptions.UPAException */ { if (new System.Nullable <bool>(false).Equals(context.GetConnection().GetProperty(identityConstraintsEnabledProperty))) { return; } context.AddGeneratedValue(field.GetName(), field.GetDataType()); //manual id values are ignored record.Remove(field.GetName()); }