public void ExtendDatabaseStructure(IConceptInfo conceptInfo, ICodeBuilder codeBuilder, out IEnumerable <Tuple <IConceptInfo, IConceptInfo> > createdDependencies) { if (Sql.TryGet("LoggingRelatedItemDatabaseDefinition_TempColumnDefinition") == null) { createdDependencies = null; return; } var info = (LoggingRelatedItemInfo)conceptInfo; InsertCode(codeBuilder, info, "LoggingRelatedItemDatabaseDefinition_TempColumnDefinition", EntityLoggingDefinition.TempColumnDefinitionTag); InsertCode(codeBuilder, info, "LoggingRelatedItemDatabaseDefinition_TempColumnList", EntityLoggingDefinition.TempColumnListTag); InsertCode(codeBuilder, info, "LoggingRelatedItemDatabaseDefinition_TempColumnSelect", EntityLoggingDefinition.TempColumnSelectTag); InsertCode(codeBuilder, info, "LoggingRelatedItemDatabaseDefinition_AfterInsertLog", EntityLoggingDefinition.AfterInsertLogTag); IConceptInfo logRelatedItemTableMustBeFullyCreated = new PrerequisiteAllProperties { DependsOn = new EntityInfo { Module = new ModuleInfo { Name = "Common" }, Name = "LogRelatedItem" } }; createdDependencies = new[] { Tuple.Create(logRelatedItemTableMustBeFullyCreated, conceptInfo) }; }
public void ExtendDatabaseStructure(IConceptInfo conceptInfo, ICodeBuilder codeBuilder, out IEnumerable <Tuple <IConceptInfo, IConceptInfo> > createdDependencies) { IConceptInfo logTableMustBeFullyCreated = new PrerequisiteAllProperties { DependsOn = new EntityInfo { Module = new ModuleInfo { Name = "Common" }, Name = "Log" } }; createdDependencies = new[] { Tuple.Create(logTableMustBeFullyCreated, conceptInfo) }; // logTableMustBeFullyCreated before this logging trigger is created }