static public DataAccessGroup Load(IPersistenceContext read, ServerEntityKey key) { var broker = read.GetBroker <IDataAccessGroupEntityBroker>(); DataAccessGroup theObject = broker.Load(key); return(theObject); }
static public DataAccessGroup Insert(DataAccessGroup entity) { using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush)) { DataAccessGroup newEntity = Insert(update, entity); update.Commit(); return(newEntity); } }
static public DataAccessGroup Insert(IUpdateContext update, DataAccessGroup entity) { var broker = update.GetBroker <IDataAccessGroupEntityBroker>(); var updateColumns = new DataAccessGroupUpdateColumns(); updateColumns.AuthorityGroupOID = entity.AuthorityGroupOID; updateColumns.Deleted = entity.Deleted; DataAccessGroup newEntity = broker.Insert(updateColumns); return(newEntity); }