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: Here is a complete example: ``` public partial class MyDbContext { partial void InitializePartial() { Configuration.AutoDetectChangesEnabled = true; Configuration.ProxyCreationEnabled = true; Configuration.LazyLoadingEnabled = true; } } ```
- context.Configuration.AutoDetectChangesEnabled = true | false
- context.Configuration.ProxyCreationEnabled = true | false
- context.Configuration.LazyLoadingEnabled = true | fals
Comments: Here is a complete example: ``` public partial class MyDbContext { partial void InitializePartial() { Configuration.AutoDetectChangesEnabled = true; Configuration.ProxyCreationEnabled = true; Configuration.LazyLoadingEnabled = true; } } ```