static public FilesystemStudyStorage Load(IPersistenceContext read, ServerEntityKey key)
        {
            var broker = read.GetBroker <IFilesystemStudyStorageEntityBroker>();
            FilesystemStudyStorage theObject = broker.Load(key);

            return(theObject);
        }
 static public FilesystemStudyStorage Insert(FilesystemStudyStorage entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         FilesystemStudyStorage newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
        static public FilesystemStudyStorage Insert(IUpdateContext update, FilesystemStudyStorage entity)
        {
            var broker        = update.GetBroker <IFilesystemStudyStorageEntityBroker>();
            var updateColumns = new FilesystemStudyStorageUpdateColumns();

            updateColumns.StudyStorageKey         = entity.StudyStorageKey;
            updateColumns.FilesystemKey           = entity.FilesystemKey;
            updateColumns.ServerTransferSyntaxKey = entity.ServerTransferSyntaxKey;
            updateColumns.StudyFolder             = entity.StudyFolder;
            FilesystemStudyStorage newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }