StructuralObject.VerifyComplexObjectIsNotNull<TComplex> Method (TComplex, String)

 

Verifies that a complex object is not null.

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

protected internal static TComplex VerifyComplexObjectIsNotNull<TComplex>(
	TComplex complexObject,
	string propertyName
)
where TComplex : ComplexObject

Parameters

complexObject
Type: TComplex

The complex object that is being validated.

propertyName
Type: System.String

The complex property on the parent object that is associated with complexObject .

Return Value

Type: TComplex

The complex object being validated.

Type Parameters

TComplex

The type of the complex object being verified.