Compartir a través de


StructuralTypeConfiguration<TStructuralType> Clase

Definición

Representa un IEdmStructuredType objeto que se puede compilar mediante ODataModelBuilder.

public abstract class StructuralTypeConfiguration<TStructuralType> where TStructuralType : class
type StructuralTypeConfiguration<'StructuralType (requires 'StructuralType : null)> = class
Public MustInherit Class StructuralTypeConfiguration(Of TStructuralType)

Parámetros de tipo

TStructuralType
Herencia
StructuralTypeConfiguration<TStructuralType>
Derivado

Constructores

StructuralTypeConfiguration<TStructuralType>(StructuralTypeConfiguration)

Inicializa una nueva instancia de la clase StructuralTypeConfiguration<TStructuralType>.

Propiedades

FullName

Obtiene el nombre completo del tipo EDM.

IsOpen

Obtiene un indicador si este tipo EDM es un tipo abierto o no. Devuelve true si se trata de un tipo abierto; false de lo contrario, devuelve .

Name

Obtiene y establece el nombre de este tipo EDM.

Namespace

Obtiene y establece el espacio de nombres de este tipo EDM.

Properties

Obtiene la colección de propiedades estructurales EDM que pertenecen a este tipo.

Métodos

CollectionProperty<TElementType>(Expression<Func<TStructuralType,IEnumerable<TElementType>>>)

Agrega una propiedad de colección al tipo EDM.

ComplexProperty<TComplexType>(Expression<Func<TStructuralType,TComplexType>>)

Agrega una propiedad compleja al tipo EDM.

ContainsMany<TTargetEntity>(Expression<Func<TStructuralType,IEnumerable<TTargetEntity>>>)

Configura una relación de este tipo estructural a una propiedad de navegación de colección independiente.

ContainsOptional<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>)

Configura una relación opcional de este tipo estructural en una sola propiedad de navegación independiente.

ContainsRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>)

Configura una relación necesaria de este tipo estructural en una sola propiedad de navegación independiente.

Count()

Establece esta propiedad es countable de este tipo estructural.

Count(QueryOptionSetting)

Establece si esta propiedad es countable de este tipo estructural.

EnumProperty<T>(Expression<Func<TStructuralType,Nullable<T>>>)

Agrega una propiedad enum opcional al tipo EDM.

EnumProperty<T>(Expression<Func<TStructuralType,T>>)

Agrega una propiedad enum obligatoria al tipo EDM.

Expand()

Establece todas las propiedades expandibles de este tipo estructural.

Expand(Int32)

Establece todas las propiedades expandibles con la profundidad máxima del resultado de expansión de este tipo estructural.

Expand(Int32, SelectExpandType, String[])

Establece la profundidad máxima del resultado de expansión, las propiedades expandibles y su SelectExpandType de este tipo estructural.

Expand(Int32, String[])

Establece la profundidad máxima del resultado de expansión, las propiedades expandibles de este tipo estructural.

Expand(SelectExpandType)

Conjuntos SelectExpandType de todas las propiedades de este tipo estructural.

Expand(SelectExpandType, Int32)

Conjuntos SelectExpandType de todas las propiedades con la profundidad máxima del resultado de expansión de este tipo estructural.

Expand(SelectExpandType, String[])

Establece las propiedades expandibles y su SelectExpandType de este tipo estructural.

Expand(String[])

Establece las propiedades expandibles de este tipo estructural.

Filter()

Establece todas las propiedades de este tipo estructural filtrables.

Filter(QueryOptionSetting)

Establece si todas las propiedades de este tipo estructural se pueden filtrar.

Filter(QueryOptionSetting, String[])

Los conjuntos de propiedades filtrables dependen QueryOptionSetting de este tipo estructural.

Filter(String[])

Establece las propiedades filtrables de este tipo estructural.

HasDynamicProperties(Expression<Func<TStructuralType,IDictionary<String,Object>>>)

Agrega una propiedad de diccionario de propiedades dinámicas.

HasInstanceAnnotations(Expression<Func<TStructuralType,IODataInstanceAnnotationContainer>>)

Agrega una propiedad contenedor InstanceAnnotation.

HasMany<TTargetEntity>(Expression<Func<TStructuralType,IEnumerable<TTargetEntity>>>)

Configura una gran relación a partir de este tipo estructural.

HasOptional<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>)

Configura una relación opcional a partir de este tipo estructural.

HasOptional<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>)

Configura una relación opcional con restricción referencial de este tipo estructural.

HasOptional<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>, Expression<Func<TTargetEntity, IEnumerable<TStructuralType>>>)

Configura una relación opcional con restricción referencial de este tipo estructural.

HasOptional<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>, Expression<Func<TTargetEntity, TStructuralType>>)

Configura una relación opcional con restricción referencial de este tipo estructural.

HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>)

Configura una relación necesaria a partir de este tipo estructural.

HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>)

Configura una relación necesaria con una restricción referencial de este tipo estructural.

HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>, Expression<Func<TTargetEntity, IEnumerable<TStructuralType>>>)

Configura una relación necesaria con una restricción referencial de este tipo estructural.

HasRequired<TTargetEntity>(Expression<Func<TStructuralType,TTargetEntity>>, Expression<Func<TStructuralType,TTargetEntity,Boolean>>, Expression<Func<TTargetEntity, TStructuralType>>)

Configura una relación necesaria con una restricción referencial de este tipo estructural.

Ignore<TProperty>(Expression<Func<TStructuralType,TProperty>>)

Excluye una propiedad del tipo.

OrderBy()

Establece todas las propiedades de este tipo estructural que se pueden ordenar.

OrderBy(QueryOptionSetting)

Establece si todas las propiedades de este tipo estructural se pueden ordenar.

OrderBy(QueryOptionSetting, String[])

Los conjuntos de propiedades ordenables dependen QueryOptionSetting de este tipo estructural.

OrderBy(String[])

Establece las propiedades ordenables de este tipo estructural.

Page()

Establece las propiedades de este tipo estructural que habilitan la paginación.

Page(Nullable<Int32>, Nullable<Int32>)

Establece el valor máximo de $top de este tipo estructural que un cliente puede solicitar y el número máximo de resultados de consulta de este tipo de entidad que se van a devolver.

Property(Expression<Func<TStructuralType,Byte[]>>)

Agrega una propiedad binaria al tipo EDM.

Property(Expression<Func<TStructuralType,DateTimeOffset>>)

Agrega una propiedad primitiva datetime-with-offset al tipo EDM.

Property(Expression<Func<TStructuralType,Decimal>>)

Agrega una propiedad primitiva deciaml al tipo EDM.

Property(Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>)

Agrega una propiedad primitiva datetime-with-offset al tipo EDM.

Property(Expression<Func<TStructuralType,Nullable<Decimal>>>)

Agrega una propiedad primitiva deciaml al tipo EDM.

Property(Expression<Func<TStructuralType,Nullable<TimeOfDay>>>)

Agrega una propiedad primitiva de hora de día al tipo EDM.

Property(Expression<Func<TStructuralType,Nullable<TimeSpan>>>)

Agrega una propiedad primitiva duration al tipo EDM.

Property(Expression<Func<TStructuralType,Stream>>)

Agrega una propiedad de secuencia al tipo EDM.

Property(Expression<Func<TStructuralType,String>>)

Agrega una propiedad de cadena al tipo EDM.

Property(Expression<Func<TStructuralType,TimeOfDay>>)

Agrega una propiedad primitiva de hora de día al tipo EDM.

Property(Expression<Func<TStructuralType,TimeSpan>>)

Agrega una propiedad primitiva duration al tipo EDM.

Property<T>(Expression<Func<TStructuralType,Nullable<T>>>)

Agrega una propiedad primitiva opcional al tipo EDM.

Property<T>(Expression<Func<TStructuralType,T>>)

Agrega una propiedad primitiva obligatoria al tipo EDM.

Select()

Establece todas las propiedades de este tipo estructural seleccionable.

Select(SelectExpandType)

Se pueden seleccionar conjuntos SelectExpandType de todas las propiedades de este tipo estructural.

Select(SelectExpandType, String[])

Los conjuntos de propiedades seleccionables dependen SelectExpandType de este tipo estructural.

Select(String[])

Establece las propiedades seleccionables de este tipo estructural.

Se aplica a