Redigera

Dela via


TypeUsage Class

Definition

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

public ref class TypeUsage sealed : System::Data::Metadata::Edm::MetadataItem
public sealed class TypeUsage : System.Data.Metadata.Edm.MetadataItem
type TypeUsage = class
    inherit MetadataItem
Public NotInheritable Class TypeUsage
Inherits MetadataItem
Inheritance
TypeUsage

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)

Methods

CreateBinaryTypeUsage(PrimitiveType, Boolean, Int32)

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

CreateBinaryTypeUsage(PrimitiveType, Boolean)

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

CreateDateTimeOffsetTypeUsage(PrimitiveType, Nullable<Byte>)

Creates a DateTimeOffsetTypeUsage object of the type that the parameters describe.

CreateDateTimeTypeUsage(PrimitiveType, Nullable<Byte>)

Creates a DateTimeTypeUsage object of the type that the parameters describe.

CreateDecimalTypeUsage(PrimitiveType, Byte, Byte)

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

CreateDecimalTypeUsage(PrimitiveType)

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

CreateDefaultTypeUsage(EdmType)

Creates a TypeUsage object with the specified conceptual model type.

CreateStringTypeUsage(PrimitiveType, Boolean, Boolean, Int32)

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

CreateStringTypeUsage(PrimitiveType, Boolean, Boolean)

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

CreateTimeTypeUsage(PrimitiveType, Nullable<Byte>)

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 the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsSubtypeOf(TypeUsage)

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

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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