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

Created Feature: Add Ignore methods to lightweight conventions [732]

$
0
0
Ignore methods should be added to make it easier to create lightweight conventions that exclude things from the model. For example:

modelBuilder.Entities().Where(t => t.Namespace == "Some.External.Namespace").Configure(e => e.Ignore());
modelBuilder.Properties().Where(p => p.GetCustomAttributes<NonSerializedAttribute>().Any()).Configure(p => p.Ignore());

Viewing all articles
Browse latest Browse all 10318

Trending Articles



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