Compartir a través de


DataServiceConfiguration.AnnotationsBuilder Propiedad

Crea los modelos de anotación que se van a aplicar al modelo de datos del proveedor.

Espacio de nombres:  System.Data.Services
Ensamblado:  Microsoft.Data.Services (en Microsoft.Data.Services.dll)

Sintaxis

'Declaración
Public Property AnnotationsBuilder As Func(Of IEdmModel, IEnumerable(Of IEdmModel))
    Get
    Set
'Uso
Dim instance As DataServiceConfiguration
Dim value As Func(Of IEdmModel, IEnumerable(Of IEdmModel))

value = instance.AnnotationsBuilder

instance.AnnotationsBuilder = value
public Func<IEdmModel, IEnumerable<IEdmModel>> AnnotationsBuilder { get; set; }
public:
property Func<IEdmModel^, IEnumerable<IEdmModel^>^>^ AnnotationsBuilder {
    Func<IEdmModel^, IEnumerable<IEdmModel^>^>^ get ();
    void set (Func<IEdmModel^, IEnumerable<IEdmModel^>^>^ value);
}
member AnnotationsBuilder : Func<IEdmModel, IEnumerable<IEdmModel>> with get, set
function get AnnotationsBuilder () : Func<IEdmModel, IEnumerable<IEdmModel>>
function set AnnotationsBuilder (value : Func<IEdmModel, IEnumerable<IEdmModel>>)

Valor de la propiedad

Tipo: System.Func<IEdmModel, IEnumerable<IEdmModel>>
Modelos de anotación que se van a aplicar.

Comentarios

Controlado por IDataServiceMetadataProvider2. La entrada de la función es el modelo del proveedor (de forma que las anotaciones devueltas pueden hacer referencia a él). Solo se consideran las anotaciones dentro de los modelos devueltos; se omite cualquier otro elemento de esquema.

Vea también

Referencia

DataServiceConfiguration Clase

Espacio de nombres System.Data.Services