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); }
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(), }); }
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 }); }