TypeUsage.CreateDefaultTypeUsage(EdmType) Method

Definition

Creates a TypeUsage object with the specified conceptual model type.

C#
public static System.Data.Metadata.Edm.TypeUsage CreateDefaultTypeUsage(System.Data.Metadata.Edm.EdmType edmType);

Parameters

edmType
EdmType

A EdmType for which the TypeUsage object is created.

Returns

A TypeUsage object with the default facet values for the specified EdmType.

Remarks

If the EdmType is a primitive type, such as String, Decimal, Binary or DateTime, this method invokes one of the corresponding methods declared in the TypeUsage class. Otherwise, it creates a TypeUsage object with the specified EdmType directly.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1