TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Will Franklin
NA
11
1.3k
Dependeny injection and ProxyCreationEnabled=false
Jan 25 2018 7:05 AM
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
Answers (
1
)
Open new window using ASP.Net without hitting popup blocker
how to disable a back button in a browser