static public ServerPartitionAlternateAeTitle Load(IPersistenceContext read, ServerEntityKey key)
        {
            var broker = read.GetBroker <IServerPartitionAlternateAeTitleEntityBroker>();
            ServerPartitionAlternateAeTitle theObject = broker.Load(key);

            return(theObject);
        }
 static public ServerPartitionAlternateAeTitle Insert(ServerPartitionAlternateAeTitle entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         ServerPartitionAlternateAeTitle newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
        static public ServerPartitionAlternateAeTitle Insert(IUpdateContext update, ServerPartitionAlternateAeTitle entity)
        {
            var broker        = update.GetBroker <IServerPartitionAlternateAeTitleEntityBroker>();
            var updateColumns = new ServerPartitionAlternateAeTitleUpdateColumns();

            updateColumns.ServerPartitionKey = entity.ServerPartitionKey;
            updateColumns.AeTitle            = entity.AeTitle;
            updateColumns.Port          = entity.Port;
            updateColumns.Enabled       = entity.Enabled;
            updateColumns.AllowStorage  = entity.AllowStorage;
            updateColumns.AllowKOPR     = entity.AllowKOPR;
            updateColumns.AllowRetrieve = entity.AllowRetrieve;
            updateColumns.AllowQuery    = entity.AllowQuery;
            ServerPartitionAlternateAeTitle newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }