コード例 #1
0
        static public ServerTransferSyntax Load(IPersistenceContext read, ServerEntityKey key)
        {
            var broker = read.GetBroker <IServerTransferSyntaxEntityBroker>();
            ServerTransferSyntax theObject = broker.Load(key);

            return(theObject);
        }
コード例 #2
0
 static public ServerTransferSyntax Insert(ServerTransferSyntax entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         ServerTransferSyntax newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
コード例 #3
0
        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));
 }