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