static public FilesystemQueue Load(IPersistenceContext read, ServerEntityKey key) { var broker = read.GetBroker <IFilesystemQueueEntityBroker>(); FilesystemQueue theObject = broker.Load(key); return(theObject); }
static public FilesystemQueue Insert(FilesystemQueue entity) { using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush)) { FilesystemQueue newEntity = Insert(update, entity); update.Commit(); return(newEntity); } }
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); }