ObjectContextOptions Class  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines options that affect the behavior of the ObjectContext.
public ref class ObjectContextOptions sealed
	public sealed class ObjectContextOptions
	type ObjectContextOptions = class
	Public NotInheritable Class ObjectContextOptions
		- Inheritance
 - 
				ObjectContextOptions
 
Properties
| LazyLoadingEnabled | 
		 Gets or sets a Boolean value that determines whether related objects are loaded automatically when a navigation property is accessed.  | 
        	
| ProxyCreationEnabled | 
		 Gets or sets a Boolean value that determines whether proxy instances are created for custom data classes that are persistence ignorant.  | 
        	
| UseConsistentNullReferenceBehavior | 
		 Gets or sets a Boolean value that determines whether to use the consistent NullReference behavior.  | 
        	
| UseCSharpNullComparisonBehavior | 
		 Gets or sets a Boolean value that determines whether to use the C# NullComparison behavior.  | 
        	
| UseLegacyPreserveChangesBehavior | 
		 Gets or sets a Boolean value that determines whether to use the legacy PreserveChanges behavior.  | 
        	
Methods
| Equals(Object) | 
		 Determines whether the specified object is equal to the current object. (Inherited from Object) | 
        	
| GetHashCode() | 
		 Serves as the default hash function. (Inherited from Object) | 
        	
| GetType() | 
		 Gets the Type of the current instance. (Inherited from Object) | 
        	
| MemberwiseClone() | 
		 Creates a shallow copy of the current Object. (Inherited from Object) | 
        	
| ToString() | 
		 Returns a string that represents the current object. (Inherited from Object) |