Share via


DataServiceConfiguration.AnnotationsBuilder Property

Builds the annotation models to be applied to the data model of the provider.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Property AnnotationsBuilder As Func(Of IEdmModel, IEnumerable(Of IEdmModel))
    Get 
    Set
'Usage
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>>)

Property Value

Type: System.Func<IEdmModel, IEnumerable<IEdmModel>>
The annotation models to be applied.

Remarks

The driven by IDataServiceMetadataProvider2. The input to the Func is the provider's model (so the returned annotations can reference it). Only annotations within the returned models are considered; any other schema elements are ignored.

See Also

Reference

DataServiceConfiguration Class

System.Data.Services Namespace