Пример #1
0
        static public StudyIntegrityQueueUid Load(IPersistenceContext read, ServerEntityKey key)
        {
            var broker = read.GetBroker <IStudyIntegrityQueueUidEntityBroker>();
            StudyIntegrityQueueUid theObject = broker.Load(key);

            return(theObject);
        }
Пример #2
0
 static public StudyIntegrityQueueUid Insert(StudyIntegrityQueueUid entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         StudyIntegrityQueueUid newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
Пример #3
0
        static public StudyIntegrityQueueUid Insert(IUpdateContext update, StudyIntegrityQueueUid entity)
        {
            var broker        = update.GetBroker <IStudyIntegrityQueueUidEntityBroker>();
            var updateColumns = new StudyIntegrityQueueUidUpdateColumns();

            updateColumns.StudyIntegrityQueueKey = entity.StudyIntegrityQueueKey;
            updateColumns.SeriesInstanceUid      = entity.SeriesInstanceUid;
            updateColumns.SopInstanceUid         = entity.SopInstanceUid;
            updateColumns.RelativePath           = entity.RelativePath;
            updateColumns.SeriesDescription      = entity.SeriesDescription;
            StudyIntegrityQueueUid newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }