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

            return(theObject);
        }
Example #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);
     }
 }
Example #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);
        }