Exemplo n.º 1
0
        static public ServerSopClass Load(IPersistenceContext read, ServerEntityKey key)
        {
            var            broker    = read.GetBroker <IServerSopClassEntityBroker>();
            ServerSopClass theObject = broker.Load(key);

            return(theObject);
        }
Exemplo n.º 2
0
 static public ServerSopClass Insert(ServerSopClass entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         ServerSopClass newEntity = Insert(update, entity);
         update.Commit();
         return newEntity;
     }
 }
Exemplo n.º 3
0
 static public ServerSopClass Insert(ServerSopClass entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         ServerSopClass newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
Exemplo n.º 4
0
 static public ServerSopClass Insert(IUpdateContext update, ServerSopClass entity)
 {
     var broker = update.GetBroker<IServerSopClassEntityBroker>();
     var updateColumns = new ServerSopClassUpdateColumns();
     updateColumns.SopClassUid = entity.SopClassUid;
     updateColumns.Description = entity.Description;
     updateColumns.NonImage = entity.NonImage;
     ServerSopClass newEntity = broker.Insert(updateColumns);
     return newEntity;
 }
Exemplo n.º 5
0
        static public ServerSopClass Insert(IUpdateContext update, ServerSopClass entity)
        {
            var broker        = update.GetBroker <IServerSopClassEntityBroker>();
            var updateColumns = new ServerSopClassUpdateColumns();

            updateColumns.SopClassUid = entity.SopClassUid;
            updateColumns.Description = entity.Description;
            updateColumns.NonImage    = entity.NonImage;
            ServerSopClass newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }
Exemplo n.º 6
0
 public ServerSopClass GetServerSopClass()
 {
     return(ServerSopClass.Load(ServerSopClassKey));
 }