TypeUsage.CreateDefaultTypeUsage(EdmType) Method
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.
Creates a TypeUsage object with the specified conceptual model type.
public:
static System::Data::Metadata::Edm::TypeUsage ^ CreateDefaultTypeUsage(System::Data::Metadata::Edm::EdmType ^ edmType);
public static System.Data.Metadata.Edm.TypeUsage CreateDefaultTypeUsage (System.Data.Metadata.Edm.EdmType edmType);
static member CreateDefaultTypeUsage : System.Data.Metadata.Edm.EdmType -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateDefaultTypeUsage (edmType As EdmType) As TypeUsage
Parameters
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.