ObjectContextOptions Class

.NET Framework (current version)
 

Defines options that affect the behavior of the ObjectContext.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

System::Object
  System.Data.Objects::ObjectContextOptions

public ref class ObjectContextOptions sealed 

NameDescription
System_CAPS_pubpropertyLazyLoadingEnabled

Gets or sets a Boolean value that determines whether related objects are loaded automatically when a navigation property is accessed.

System_CAPS_pubpropertyProxyCreationEnabled

Gets or sets a Boolean value that determines whether proxy instances are created for custom data classes that are persistence ignorant.

System_CAPS_pubpropertyUseConsistentNullReferenceBehavior

Gets or sets a Boolean value that determines whether to use the consistent NullReference behavior.

System_CAPS_pubpropertyUseCSharpNullComparisonBehavior

Gets or sets a Boolean value that determines whether to use the C# NullComparison behavior.

System_CAPS_pubpropertyUseLegacyPreserveChangesBehavior

Gets or sets a Boolean value that determines whether to use the legacy PreserveChanges behavior.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

No content here will be updated; please do not add material here.

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: