TypeUsage Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Describes a type and a set of facets for that type.

Namespace:   System.Data.Metadata.Edm
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

System.Object
  System.Data.Metadata.Edm.MetadataItem
    System.Data.Metadata.Edm.TypeUsage

public sealed class TypeUsage : MetadataItem

NameDescription
System_CAPS_pubpropertyBuiltInTypeKind

Gets the built-in type kind for this TypeUsage.(Overrides MetadataItem.BuiltInTypeKind.)

System_CAPS_pubpropertyDocumentation

Gets or sets the documentation associated with this type.(Inherited from MetadataItem.)

System_CAPS_pubpropertyEdmType

Gets the type information described by this TypeUsage.

System_CAPS_pubpropertyFacets

Gets the list of facets for the type that is described by this TypeUsage.

System_CAPS_pubpropertyMetadataProperties

Gets the list of properties of the current type.(Inherited from MetadataItem.)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateBinaryTypeUsage(PrimitiveType, Boolean)

Creates a TypeUsage object to describe a binary type by using the specified facet values.

System_CAPS_pubmethodSystem_CAPS_staticCreateBinaryTypeUsage(PrimitiveType, Boolean, Int32)

Creates a TypeUsage object to describe a binary type by using the specified facet values.

System_CAPS_pubmethodSystem_CAPS_staticCreateDateTimeOffsetTypeUsage(PrimitiveType, Nullable<Byte>)

Creates a T:System.Data.Metadata.Edm.DateTimeOffsetTypeUsage object of the type that the parameters describe.

System_CAPS_pubmethodSystem_CAPS_staticCreateDateTimeTypeUsage(PrimitiveType, Nullable<Byte>)

Creates a T:System.Data.Metadata.Edm.DateTimeTypeUsage object of the type that the parameters describe.

System_CAPS_pubmethodSystem_CAPS_staticCreateDecimalTypeUsage(PrimitiveType)

Creates a TypeUsage object to describe a decimal type with unbounded precision and scale facet values.

System_CAPS_pubmethodSystem_CAPS_staticCreateDecimalTypeUsage(PrimitiveType, Byte, Byte)

Creates a TypeUsage object to describe a decimal type by using the specified facet values.

System_CAPS_pubmethodSystem_CAPS_staticCreateDefaultTypeUsage(EdmType)

Creates a TypeUsage object with the specified conceptual model type.

System_CAPS_pubmethodSystem_CAPS_staticCreateStringTypeUsage(PrimitiveType, Boolean, Boolean)

Creates a TypeUsage object to describe a string type by using the specified facet values and unbounded MaxLength.

System_CAPS_pubmethodSystem_CAPS_staticCreateStringTypeUsage(PrimitiveType, Boolean, Boolean, Int32)

Creates a TypeUsage object to describe a string type by using the specified facet values.

System_CAPS_pubmethodSystem_CAPS_staticCreateTimeTypeUsage(PrimitiveType, Nullable<Byte>)

Creates a T:System.Data.Metadata.Edm.TimeTypeUsage object of the type that the parameters describe.

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_pubmethodIsSubtypeOf(TypeUsage)

Checks whether this TypeUsage is a subtype of the specified TypeUsage.

System_CAPS_pubmethodToString()

Returns the full name of the type described by this TypeUsage.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubmethodConstant(Object)

Overloaded. Creates a new DbConstantExpression of the specified primitive type with the given constant value. (Defined by DbExpressionBuilder.)

System_CAPS_pubmethodNew(DbExpression[])

Overloaded. Creates a new DbNewInstanceExpression. If the type argument is a collection type, the arguments specify the elements of the collection. Otherwise the arguments are used as property or column values in the new instance.(Defined by DbExpressionBuilder.)

System_CAPS_pubmethodNew(IEnumerable<DbExpression>)

Overloaded. Creates a new DbNewInstanceExpression. If the type argument is a collection type, the arguments specify the elements of the collection. Otherwise the arguments are used as property or column values in the new instance. (Defined by DbExpressionBuilder.)

System_CAPS_pubmethodNewEmptyCollection()

Creates a new DbNewInstanceExpression that constructs an empty collection of the specified collection type. (Defined by DbExpressionBuilder.)

System_CAPS_pubmethodNull()

Creates a new DbNullExpression, which represents a typed null value. (Defined by DbExpressionBuilder.)

System_CAPS_pubmethodParameter(String)

Creates a new DbParameterReferenceExpression that references a parameter with the specified name and type. (Defined by DbExpressionBuilder.)

System_CAPS_pubmethodVariable(String)

Creates a new DbVariableReferenceExpression that references a variable with the specified name and type.(Defined by DbExpressionBuilder.)

.NET Framework
Available since 3.5

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: