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

            return(theObject);
        }
Exemplo n.º 2
0
 static public WorkQueueUid Insert(WorkQueueUid entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         WorkQueueUid newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
Exemplo n.º 3
0
        static public WorkQueueUid Insert(IUpdateContext update, WorkQueueUid entity)
        {
            var broker        = update.GetBroker <IWorkQueueUidEntityBroker>();
            var updateColumns = new WorkQueueUidUpdateColumns();

            updateColumns.WorkQueueKey      = entity.WorkQueueKey;
            updateColumns.Failed            = entity.Failed;
            updateColumns.Duplicate         = entity.Duplicate;
            updateColumns.FailureCount      = entity.FailureCount;
            updateColumns.GroupID           = entity.GroupID;
            updateColumns.RelativePath      = entity.RelativePath;
            updateColumns.Extension         = entity.Extension;
            updateColumns.SeriesInstanceUid = entity.SeriesInstanceUid;
            updateColumns.SopInstanceUid    = entity.SopInstanceUid;
            WorkQueueUid newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }