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);
            }
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 internal LoadMetadata(ShareManager shareManager, ShareDefinition shareDefinition) : base()
 {
     shareManager.UpsertAndHydrate(this, shareDefinition);
 }
Exemple #4
0
 internal CatalogueItem(ShareManager shareManager, ShareDefinition shareDefinition)
 {
     shareManager.UpsertAndHydrate(this, shareDefinition);
 }
Exemple #5
0
 internal ProcessTask(ShareManager shareManager, ShareDefinition shareDefinition)
 {
     shareManager.UpsertAndHydrate(this, shareDefinition);
 }
Exemple #6
0
 internal Plugin(ShareManager shareManager, ShareDefinition shareDefinition)
 {
     shareManager.UpsertAndHydrate(this, shareDefinition);
 }
Exemple #7
0
 internal ANOTable(ShareManager shareManager, ShareDefinition shareDefinition)
 {
     shareManager.UpsertAndHydrate(this, shareDefinition);
 }
Exemple #8
0
 internal Catalogue(ShareManager shareManager, ShareDefinition shareDefinition)
 {
     shareManager.UpsertAndHydrate(this, shareDefinition);
     ClearAllInjections();
 }
 internal LoadModuleAssembly(ShareManager shareManager, ShareDefinition shareDefinition)
 {
     shareManager.UpsertAndHydrate(this, shareDefinition);
     ClearAllInjections();
 }