Esempio n. 1
0
        static public DataAccessGroup Load(IPersistenceContext read, ServerEntityKey key)
        {
            var             broker    = read.GetBroker <IDataAccessGroupEntityBroker>();
            DataAccessGroup theObject = broker.Load(key);

            return(theObject);
        }
Esempio n. 2
0
 static public DataAccessGroup Insert(DataAccessGroup entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         DataAccessGroup newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
Esempio n. 3
0
        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);
        }