internal ProcessTaskArgument(ShareManager shareManager, ShareDefinition shareDefinition) { shareManager.UpsertAndHydrate(this, shareDefinition); try { //if the import is into a repository other than the master original repository if (!shareManager.IsExportedObject(this.ProcessTask.LoadMetadata)) { //and we are a reference type e.g. to a ColumnInfo or something var t = GetConcreteSystemType(); if (typeof(IMapsDirectlyToDatabaseTable).IsAssignableFrom(t) || typeof(IEnumerable <IMapsDirectlyToDatabaseTable>).IsAssignableFrom(t)) { //then use the value Null because whatever ID is stored in us won't be pointing to the same object //as when we were exported! Value = null; SaveToDatabase(); } } } catch (Exception e) { //couldn't work out the Type, maybe it is broken or something, or otherwise someone elses problem Console.WriteLine(e); } }
internal ExternalDatabaseServer(ShareManager shareManager, ShareDefinition shareDefinition) { var repo = shareManager.RepositoryLocator.CatalogueRepository; Repository = repo; _selfCertifyingDataAccessPoint = new SelfCertifyingDataAccessPoint(CatalogueRepository, DatabaseType.MicrosoftSQLServer /*will get changed by UpsertAndHydrate*/); shareManager.UpsertAndHydrate(this, shareDefinition); }
internal LoadMetadata(ShareManager shareManager, ShareDefinition shareDefinition) : base() { shareManager.UpsertAndHydrate(this, shareDefinition); }
internal CatalogueItem(ShareManager shareManager, ShareDefinition shareDefinition) { shareManager.UpsertAndHydrate(this, shareDefinition); }
internal ProcessTask(ShareManager shareManager, ShareDefinition shareDefinition) { shareManager.UpsertAndHydrate(this, shareDefinition); }
internal Plugin(ShareManager shareManager, ShareDefinition shareDefinition) { shareManager.UpsertAndHydrate(this, shareDefinition); }
internal ANOTable(ShareManager shareManager, ShareDefinition shareDefinition) { shareManager.UpsertAndHydrate(this, shareDefinition); }
internal Catalogue(ShareManager shareManager, ShareDefinition shareDefinition) { shareManager.UpsertAndHydrate(this, shareDefinition); ClearAllInjections(); }
internal LoadModuleAssembly(ShareManager shareManager, ShareDefinition shareDefinition) { shareManager.UpsertAndHydrate(this, shareDefinition); ClearAllInjections(); }