protected virtual void Mapping_ignores_ignored_three_dimensional_array() { using (var context = new TwoDeeContext( Configure(), b => b.Entity <ThreeDee>().Ignore(e => e.Three))) { Assert.Null(context.Model.FindEntityType(typeof(ThreeDee)).FindProperty("Three")); RunThrowDifferPipeline(context); } }
protected virtual void Mapping_throws_for_non_ignored_three_dimensional_array() { using (var context = new TwoDeeContext( Configure(), b => b.Entity <ThreeDee>())) { Assert.Equal( CoreStrings.PropertyNotAdded( typeof(ThreeDee).ShortDisplayName(), "Three", typeof(int[, , ]).ShortDisplayName()), Assert.Throws <InvalidOperationException>(() => context.Model).Message); } }