TypeUsage Class

Definition

Class representing a type information for an item

[System.Diagnostics.DebuggerDisplay("EdmType={EdmType}, Facets.Count={Facets.Count}")]
public class TypeUsage : System.Data.Entity.Core.Metadata.Edm.MetadataItem
type TypeUsage = class
    inherit MetadataItem
Public Class TypeUsage
Inherits MetadataItem
Inheritance
TypeUsage
Attributes

Properties

BuiltInTypeKind

Gets the built-in type kind for this TypeUsage.

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)
ModelTypeUsage

Returns a Model type usage for a provider type

Methods

AddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.

(Inherited from MetadataItem)
Create(EdmType, IEnumerable<Facet>)

Factory method for creating a TypeUsage with specified EdmType and facets

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(PrimitiveType, Nullable<Byte>)

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

CreateDateTimeTypeUsage(PrimitiveType, Nullable<Byte>)

Creates a System.Data.Metadata.Edm.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(EdmType)

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(PrimitiveType, Nullable<Byte>)

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

IsSubtypeOf(TypeUsage)

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

RemoveAnnotation(String)

Removes an annotation with the specified name.

(Inherited from MetadataItem)
ToString()

Returns the full name of the type described by this TypeUsage.

Extension Methods

Constant(TypeUsage, Object)

Creates a new DbConstantExpression of the specified primitive type with the given constant value.

New(TypeUsage, IEnumerable<DbExpression>)

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.

New(TypeUsage, DbExpression[])

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.

NewEmptyCollection(TypeUsage)

Creates a new DbNewInstanceExpression that constructs an empty collection of the specified collection type.

Null(TypeUsage)

Creates a new DbNullExpression, which represents a typed null value.

Parameter(TypeUsage, String)

Creates a new DbParameterReferenceExpression that references a parameter with the specified name and type.

Variable(TypeUsage, String)

Creates a new DbVariableReferenceExpression that references a variable with the specified name and type.

Applies to