コード例 #1
0
 public MappingManyToManyView(
     ManyToManyNavigation manyToManyNavigation,
     ManyToManyStoreTable manyToManyStoreTable,
     ManyToManyKeys manyToManyKeys)
 {
     this.manyToManyNavigation = manyToManyNavigation;
     this.manyToManyStoreTable = manyToManyStoreTable;
     this.manyToManyKeys       = manyToManyKeys;
 }
コード例 #2
0
        public void NullTableNameShouldDefaultToEntitySetName()
        {
            var entityTypeBuilder = new EntityTypeBuilder();
            var posts             = entityTypeBuilder
                                    .Name("My.Post")
                                    .WithProperty <int>("ID")
                                    .WithKeys("ID")
                                    .Build();

            var entitySet = EntitySet.Create(
                "name",
                "mappingSchemaName",
                null,
                "definingQuery",
                posts,
                Enumerable.Empty <MetadataProperty>());

            var testSubject = new ManyToManyStoreTable(entitySet);

            testSubject.MappingTableName.Should().Be("name");
            testSubject.MappingSchemaName.Should().Be("mappingSchemaName");
        }