public void GeneratorForeignKeyComposite2(SqlEngineVersion version) { var db = new ForeignKeyCompositeSetForeignKeyTo(); var generator = new BimGenerator(DataDefinitionDocumenterTestsHelper.CreateTestGeneratorContext(version, new DocumenterTests.TableCustomizer()), version, "ForeignKeyCompositeSetForeignKeyTo"); generator.Generate(db); }
public void GeneratorForeignKeyComposite2Typed_SingleFile(SqlEngineVersion version) { var dd = new ForeignKeyCompositeSetForeignKeyTo(); var documenterContext = DataDefinitionDocumenterTestsHelper.CreateTestGeneratorContext(version, new DocumenterTests.TableCustomizer()); var writer = CSharpTypedWriterFactory.GetCSharpTypedWriter(version, documenterContext, "ForeignKeyCompositeSetForeignKeyTo"); var generator = new CSharpTypedGenerator(writer, version, "TestDatabaseFkNoCheckTest", "FizzCode.DbTools.DataDefinitionDocumenter.Tests"); generator.GenerateSingleFile(dd, $"GeneratorForeignKeyComposite2Typed_SingleFile_{version}.cs"); }
public void GeneratorForeignKeyComposite2(SqlEngineVersion version) { var db = new ForeignKeyCompositeSetForeignKeyTo(); var documenterContext = DataDefinitionDocumenterTestsHelper.CreateTestGeneratorContext(version, new DocumenterTests.TableCustomizer()); var writer = CSharpTypedWriterFactory.GetCSharpTypedWriter(version, documenterContext, "ForeignKeyCompositeSetForeignKeyTo"); var generator = new CSharpTypedGenerator(writer, version, "ForeignKeyCompositeSetForeignKeyTo", "FizzCode.DbTools.DataDefinitionDocumenter.Tests"); generator.GenerateMultiFile(db); }