Esempio n. 1
0
 public NewConceptApplication(IConceptInfo conceptInfo, IConceptDatabaseDefinition conceptImplementation)
 {
     Id = Guid.Empty;
     ConceptInfo = conceptInfo;
     ConceptInfoTypeName = conceptInfo.GetType().AssemblyQualifiedName;
     ConceptInfoKey = conceptInfo.GetKey();
     ConceptImplementation = conceptImplementation;
     ConceptImplementationType = conceptImplementation.GetType();
     ConceptImplementationTypeName = ConceptImplementationType.AssemblyQualifiedName;
     ConceptImplementationVersion = GetVersionFromAttribute(ConceptImplementationType);
 }
Esempio n. 2
0
 public NewConceptApplication(IConceptInfo conceptInfo, IConceptDatabaseDefinition conceptImplementation)
 {
     Id                            = Guid.Empty;
     ConceptInfo                   = conceptInfo;
     ConceptInfoTypeName           = conceptInfo.GetType().AssemblyQualifiedName;
     ConceptInfoKey                = conceptInfo.GetKey();
     ConceptImplementation         = conceptImplementation;
     ConceptImplementationType     = conceptImplementation.GetType();
     ConceptImplementationTypeName = ConceptImplementationType.AssemblyQualifiedName;
     ConceptImplementationVersion  = GetVersionFromAttribute(ConceptImplementationType);
 }
Esempio n. 3
0
            public static NewConceptApplication CreateApplication(string name, IConceptDatabaseDefinition implementation)
            {
                var conceptInfo = new BaseCi {
                    Name = name
                };

                return(new NewConceptApplication(conceptInfo, implementation)
                {
                    CreateQuery = implementation.CreateDatabaseStructure(conceptInfo),
                    RemoveQuery = implementation.RemoveDatabaseStructure(conceptInfo),
                    DependsOn = new ConceptApplicationDependency[] { },
                    ConceptImplementationType = implementation.GetType(),
                });
            }
Esempio n. 4
0
 private static ConceptApplication NewConceptApplication(
     IConceptInfo conceptInfo,
     IConceptDatabaseDefinition conceptImplementation,
     Guid Id,
     string CreateQuery,
     ConceptApplication[] DependsOn,
     int OldCreationOrder)
 {
     return(new ConceptApplication
     {
         //ConceptInfo = conceptInfo,
         ConceptInfoTypeName = conceptInfo.GetType().AssemblyQualifiedName,
         ConceptInfoKey = conceptInfo.GetKey(),
         //ConceptImplementation = conceptImplementation,
         //ConceptImplementationType = conceptImplementation.GetType(),
         ConceptImplementationTypeName = conceptImplementation.GetType().AssemblyQualifiedName,
         //ConceptImplementationVersion = GetVersionFromAttribute(conceptImplementation.GetType()),
         Id = Id,
         CreateQuery = CreateQuery,
         DependsOn = DependsOn,
         OldCreationOrder = OldCreationOrder
     });
 }