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

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

            updateColumns.Uid         = entity.Uid;
            updateColumns.Description = entity.Description;
            updateColumns.Lossless    = entity.Lossless;
            ServerTransferSyntax newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }
예제 #4
0
 public ServerTransferSyntax GetServerTransferSyntax()
 {
     return(ServerTransferSyntax.Load(ServerTransferSyntaxKey));
 }