public void Exception_is_thrown_if_pregenerated_view_cache_returns_null_view_for_EntitySetBase_that_requires_esql() { using (var context = new ContextWithNullView()) { var exception = Assert.Throws <EntityCommandCompilationException>( () => context.Blogs.ToString()); Assert.NotNull(exception.InnerException); exception.InnerException.ValidateMessage("Mapping_Views_For_Extent_Not_Generated", "EntitySet", "Blogs"); } }
public void Exception_is_thrown_if_pregenerated_view_cache_returns_null_view_for_EntitySetBase_that_requires_esql() { using (var context = new ContextWithNullView()) { var exception = Assert.Throws<EntityCommandCompilationException>( () => context.Blogs.ToString()); Assert.NotNull(exception.InnerException); exception.InnerException.ValidateMessage("Mapping_Views_For_Extent_Not_Generated", "EntitySet", "Blogs"); } }