Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Commented Issue: Designer :: changing the accessibility of Entity type from Public to Internal does not propagate to inherited classes, causing "inconsistent accessibility" errors on build [1486]

$
0
0
In the designer, create a model with hierarchy (e.g. Customer and VipCustomer). Change accessibility of Customer class to Internal. This changes the accessibility of a C# class customer to internal. However the code won't compile now, because VipCustomer is still left as public and compiler complains about inconsistent accessibility.
We should consider propagating accessibility changes to inherited classes in order to avoid it.
Comments: Additional note: although this is very easily fixed by modifying the c# classes (and compiler tells you where exactly), user has to do it every time he/she makes changes to the model. This makes it somewhat more annoying

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>