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

            return(theObject);
        }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
        }