locked
Why EF create proxies RRS feed

  • Question

  • User828542847 posted

    please tell me some one why EF need to create proxy....what is advantage of proxy?

    public class BloggingContext : DbContext 
    { 
        public BloggingContext() 
        { 
            this.Configuration.ProxyCreationEnabled = false; 
        }  
     
        public DbSet<Blog> Blogs { get; set; } 
        public DbSet<Post> Posts { get; set; } 
    }
    

    this way this.Configuration.ProxyCreationEnabled = false; we can disable proxy but i like to know if we disable proxy then what are the things will not be possible and what kind of problem will be started when disable proxy. thanks

    Tuesday, September 12, 2017 12:14 PM

Answers