Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Dependeny injection and ProxyCreationEnabled=false
Will Franklin
Jan 25 2018 7:05 AM
131
Hi,
In order not to generate JSON circular reference problems when using Entity Framework I normally insert this line in my database context "this.Configuration.ProxyCreationEnabled = false;".
However, since it's recommended to register the database context with dependency injection as follows "services.AddDbContext(options => options.UseSqlServer(connection));" where do I set the proxy to false?
Reply
Upload Source Code
Select only zip and rar file.
Post
Reset
Answers (
1
)
How do i update database table by exporting data from excel
ASP.NET New Updates