DbContextConfiguration.ProxyCreationEnabled Property

 

Gets or sets a value indicating whether or not the framework will create instances of dynamically generated proxy classes whenever it creates an instance of an entity type. Note that even if proxy creation is enabled with this flag, proxy instances will only be created for entity types that meet the requirements for being proxied. Proxy creation is enabled by default.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public bool ProxyCreationEnabled { get; set; }

Property Value

Type: System.Boolean

true if proxy creation is enabled; otherwise, false .