Quantcast
Channel: EntityFramework Reverse POCO Code First Generator
Viewing all articles
Browse latest Browse all 1642

Commented Unassigned: Context.Configuration parameters [92]

$
0
0
The following context parameters should be added to the .tt setting.

- context.Configuration.AutoDetectChangesEnabled = true | false
- context.Configuration.ProxyCreationEnabled = true | false
- context.Configuration.LazyLoadingEnabled = true | fals
Comments: In your .tt settings file, set __MakeClassesPartial = true;__ Then create your own partial class of your db context, which will not be over-written by the generator. For example __public partial class MyDbContext : DbContext, IMyDbContext__ Then implement the __InitializePartial__ function to set your flags, such as AutoDetectChangesEnabled, ProxyCreationEnabled, LazyLoadingEnabled.

Viewing all articles
Browse latest Browse all 1642

Trending Articles



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