Export (0) Print
Expand All

TypeUsage Class

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)

[DebuggerDisplayAttribute("EdmType={EdmType}, Facets.Count={Facets.Count}")]
public sealed class TypeUsage : MetadataItem

The TypeUsage type exposes the following members.

  NameDescription
Public propertyBuiltInTypeKindGets the built-in type kind for this TypeUsage. (Overrides MetadataItem.BuiltInTypeKind.)
Public propertyDocumentationGets or sets the documentation associated with this type. (Inherited from MetadataItem.)
Public propertyEdmTypeGets the type information described by this TypeUsage.
Public propertyFacetsGets the list of facets for the type that is described by this TypeUsage.
Public propertyMetadataPropertiesGets the list of properties of the current type. (Inherited from MetadataItem.)
Top

  NameDescription
Public methodStatic memberCreateBinaryTypeUsage(PrimitiveType, Boolean)Creates a TypeUsage object to describe a binary type by using the specified facet values.
Public methodStatic memberCreateBinaryTypeUsage(PrimitiveType, Boolean, Int32)Creates a TypeUsage object to describe a binary type by using the specified facet values.
Public methodStatic memberCreateDateTimeOffsetTypeUsageCreates a DateTimeOffsetTypeUsage object of the type that the parameters describe.
Public methodStatic memberCreateDateTimeTypeUsageCreates a DateTimeTypeUsage object of the type that the parameters describe.
Public methodStatic memberCreateDecimalTypeUsage(PrimitiveType)Creates a TypeUsage object to describe a decimal type with unbounded precision and scale facet values.
Public methodStatic memberCreateDecimalTypeUsage(PrimitiveType, Byte, Byte)Creates a TypeUsage object to describe a decimal type by using the specified facet values.
Public methodStatic memberCreateDefaultTypeUsageCreates a TypeUsage object with the specified conceptual model type.
Public methodStatic memberCreateStringTypeUsage(PrimitiveType, Boolean, Boolean)Creates a TypeUsage object to describe a string type by using the specified facet values and unbounded MaxLength.
Public methodStatic memberCreateStringTypeUsage(PrimitiveType, Boolean, Boolean, Int32)Creates a TypeUsage object to describe a string type by using the specified facet values.
Public methodStatic memberCreateTimeTypeUsageCreates a TimeTypeUsage object of the type that the parameters describe.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsSubtypeOfChecks whether this TypeUsage is a subtype of the specified TypeUsage.
Public methodToStringReturns the full name of the type described by this TypeUsage. (Overrides Object.ToString().)
Top

  NameDescription
Public Extension MethodConstant Creates a new DbConstantExpression of the specified primitive type with the given constant value. (Defined by DbExpressionBuilder.)
Public Extension MethodNew(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.)
Public Extension MethodNew(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.)
Public Extension MethodNewEmptyCollectionCreates a new DbNewInstanceExpression that constructs an empty collection of the specified collection type. (Defined by DbExpressionBuilder.)
Public Extension MethodNullCreates a new DbNullExpression, which represents a typed null value. (Defined by DbExpressionBuilder.)
Public Extension MethodParameterCreates a new DbParameterReferenceExpression that references a parameter with the specified name and type. (Defined by DbExpressionBuilder.)
Public Extension MethodVariableCreates a new DbVariableReferenceExpression that references a variable with the specified name and type. (Defined by DbExpressionBuilder.)
Top

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft