TypeUsage Class
.NET Framework 4.5
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)
The TypeUsage type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | BuiltInTypeKind | Gets the built-in type kind for this TypeUsage. (Overrides MetadataItem.BuiltInTypeKind.) |
![]() | Documentation | Gets or sets the documentation associated with this type. (Inherited from MetadataItem.) |
![]() | EdmType | Gets the type information described by this TypeUsage. |
![]() | Facets | Gets the list of facets for the type that is described by this TypeUsage. |
![]() | MetadataProperties | Gets the list of properties of the current type. (Inherited from MetadataItem.) |
| Name | Description | |
|---|---|---|
![]() ![]() | CreateBinaryTypeUsage(PrimitiveType, Boolean) | Creates a TypeUsage object to describe a binary type by using the specified facet values. |
![]() ![]() | CreateBinaryTypeUsage(PrimitiveType, Boolean, Int32) | Creates a TypeUsage object to describe a binary type by using the specified facet values. |
![]() ![]() | CreateDateTimeOffsetTypeUsage | Creates a DateTimeOffsetTypeUsage object of the type that the parameters describe. |
![]() ![]() | CreateDateTimeTypeUsage | Creates a DateTimeTypeUsage object of the type that the parameters describe. |
![]() ![]() | CreateDecimalTypeUsage(PrimitiveType) | Creates a TypeUsage object to describe a decimal type with unbounded precision and scale facet values. |
![]() ![]() | CreateDecimalTypeUsage(PrimitiveType, Byte, Byte) | Creates a TypeUsage object to describe a decimal type by using the specified facet values. |
![]() ![]() | CreateDefaultTypeUsage | Creates a TypeUsage object with the specified conceptual model type. |
![]() ![]() | CreateStringTypeUsage(PrimitiveType, Boolean, Boolean) | Creates a TypeUsage object to describe a string type by using the specified facet values and unbounded MaxLength. |
![]() ![]() | CreateStringTypeUsage(PrimitiveType, Boolean, Boolean, Int32) | Creates a TypeUsage object to describe a string type by using the specified facet values. |
![]() ![]() | CreateTimeTypeUsage | Creates a TimeTypeUsage object of the type that the parameters describe. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsSubtypeOf | Checks whether this TypeUsage is a subtype of the specified TypeUsage. |
![]() | ToString | Returns the full name of the type described by this TypeUsage. (Overrides Object.ToString().) |
| Name | Description | |
|---|---|---|
![]() | Constant | Creates a new DbConstantExpression of the specified primitive type with the given constant value. (Defined by DbExpressionBuilder.) |
![]() | New(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.) |
![]() | New(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.) |
![]() | NewEmptyCollection | Creates a new DbNewInstanceExpression that constructs an empty collection of the specified collection type. (Defined by DbExpressionBuilder.) |
![]() | Null | Creates a new DbNullExpression, which represents a typed null value. (Defined by DbExpressionBuilder.) |
![]() | Parameter | Creates a new DbParameterReferenceExpression that references a parameter with the specified name and type. (Defined by DbExpressionBuilder.) |
![]() | Variable | Creates a new DbVariableReferenceExpression that references a variable with the specified name and type. (Defined by DbExpressionBuilder.) |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.



