예제 #1
0
        static public FilesystemQueue Load(IPersistenceContext read, ServerEntityKey key)
        {
            var             broker    = read.GetBroker <IFilesystemQueueEntityBroker>();
            FilesystemQueue theObject = broker.Load(key);

            return(theObject);
        }
예제 #2
0
 static public FilesystemQueue Insert(FilesystemQueue entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         FilesystemQueue newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
예제 #3
0
        static public FilesystemQueue Insert(IUpdateContext update, FilesystemQueue entity)
        {
            var broker        = update.GetBroker <IFilesystemQueueEntityBroker>();
            var updateColumns = new FilesystemQueueUpdateColumns();

            updateColumns.FilesystemQueueTypeEnum = entity.FilesystemQueueTypeEnum;
            updateColumns.StudyStorageKey         = entity.StudyStorageKey;
            updateColumns.FilesystemKey           = entity.FilesystemKey;
            updateColumns.ScheduledTime           = entity.ScheduledTime;
            updateColumns.SeriesInstanceUid       = entity.SeriesInstanceUid;
            updateColumns.QueueXml = entity.QueueXml;
            FilesystemQueue newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }