StructuralObject.GetValidValue Method

 

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

NameDescription
System_CAPS_protmethodSystem_CAPS_staticGetValidValue(Byte[])

Returns a copy of the current byte value.

System_CAPS_protmethodGetValidValue<T>(T, String, Boolean, Boolean)

Returns a complex type for the specified property.


StructuralObject.GetValidValue Method (Byte[])

Returns a copy of the current byte value.

protected internal static byte[] GetValidValue(
	byte[] currentValue
)

Parameters

currentValue
Type: System.Byte[]

The current byte array value.

Return Value

Type: System.Byte[]

A copy of the current Byte value.


StructuralObject.GetValidValue<T> Method (T, String, Boolean, Boolean)

Returns a complex type for the specified property.

protected internal T GetValidValue<T>(
	T currentValue,
	string property,
	bool isNullable,
	bool isInitialized
)
where T : new(), ComplexObject

Parameters

currentValue
Type: T

A complex object that inherits from complex object.

property
Type: System.String

The name of the complex property that is the complex object.

isNullable
Type: System.Boolean

Indicates whether the type supports null values.

isInitialized
Type: System.Boolean

Indicates whether the type is initialized.

Return Value

Type: T

A complex type object for the property.

Type Parameters

T

The type of the complex object being requested.

Unlike most of the other helper methods in this class, this one is not static because it references the SetValidValue for complex objects, which is also not static because it needs a reference to this.