We made the EntityViewContainer and friends obsolete and now if a project is using the deprecated classes we make the compilation fail with the following message:
Error 1 'System.Data.Entity.Core.Mapping.EntityViewContainer' is obsolete:
'The mechanism to provide pre-generated views has changed. Implement a class that derives from System.Data.Entity.Infrastructure.DbMappingViewCache and has a parameterless constructor, then associate it with a type that derives from DbContext or ObjectContext by using System.Data.Entity.Infrastructure.DbGeneratedViewCacheTypeAttribute.' EF6ViewsTest\MyContext.Views1.cs 20 25 EF6ViewsTest
This message is however incorrect since the classes it references live in different namespaces - in particular:
System.Data.Entity.Infrastructure.DbMappingViewCache
System.Data.Entity.Infrastructure.DbGeneratedViewCacheTypeAttribute
should be changed to:
System.Data.Entity.Infrastructure.__MappingViews.__DbMappingViewCache
System.Data.Entity.Infrastructure.__MappingViews.__DbGeneratedViewCacheTypeAttribute
We should make sure that there are no other places that need to be fixed.
Error 1 'System.Data.Entity.Core.Mapping.EntityViewContainer' is obsolete:
'The mechanism to provide pre-generated views has changed. Implement a class that derives from System.Data.Entity.Infrastructure.DbMappingViewCache and has a parameterless constructor, then associate it with a type that derives from DbContext or ObjectContext by using System.Data.Entity.Infrastructure.DbGeneratedViewCacheTypeAttribute.' EF6ViewsTest\MyContext.Views1.cs 20 25 EF6ViewsTest
This message is however incorrect since the classes it references live in different namespaces - in particular:
System.Data.Entity.Infrastructure.DbMappingViewCache
System.Data.Entity.Infrastructure.DbGeneratedViewCacheTypeAttribute
should be changed to:
System.Data.Entity.Infrastructure.__MappingViews.__DbMappingViewCache
System.Data.Entity.Infrastructure.__MappingViews.__DbGeneratedViewCacheTypeAttribute
We should make sure that there are no other places that need to be fixed.