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

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