Ejemplo n.º 1
0
        public async Task CdmManifestDefinitionIsNotNull()
        {
            CdmGenerator generator = CreateCdmGenerator();
            var          model     = new RelationalModel();

            CdmManifestDefinition manifest = await generator.GenerateCdmAsync(model);

            Assert.NotNull(manifest);
        }
Ejemplo n.º 2
0
 public GenerateCdmFromDatabaseCommand(
     ILogger <GenerateCdmFromDatabaseCommand> logger, IRelationalModelReader relationalModelReader,
     SqlRelationalModelAnnotationCombiner annotationCombiner, CdmGenerator cdmGenerator)
 {
     this.logger = logger;
     this.relationalModelReader = relationalModelReader;
     this.annotationCombiner    = annotationCombiner;
     this.cdmGenerator          = cdmGenerator;
 }
Ejemplo n.º 3
0
        public async Task CdmManifestDefinitionWithEmptyTablesContainsEmptyEntitiesAndRelationships()
        {
            CdmGenerator generator = CreateCdmGenerator();
            var          model     = new RelationalModel();

            CdmManifestDefinition manifest = await generator.GenerateCdmAsync(model);

            Assert.Empty(manifest.Entities);
            Assert.Empty(manifest.Relationships);
        }
Ejemplo n.º 4
0
 public GenerateCdmFromFileCommand(
     ILogger <GenerateCdmFromFileCommand> logger, SqlTextCommandAdapter sqlFileAdapter, IRelationalModelReader relationalModelReader,
     SqlRelationalModelAnnotationCombiner annotationCombiner, CdmGenerator cdmGenerator)
 {
     this.logger                = logger;
     this.sqlCommandAdapter     = sqlFileAdapter;
     this.relationalModelReader = relationalModelReader;
     this.annotationCombiner    = annotationCombiner;
     this.cdmGenerator          = cdmGenerator;
 }