Skip to main content

IMetadataProvider<T>.BuildMetadata(MetadataBuilder<T>) Method

Builds data source configurations.

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v24.1.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

void BuildMetadata(
    MetadataBuilder<T> builder
)

Parameters

Name Type Description
builder MetadataBuilder<T>

A metadata builder instance.

Remarks

The BuildMetadata method is the main method for building metadata using the DevExpress Fluent API.

See the example below.

using System;
using System.Windows;
using System.ComponentModel.DataAnnotations;
using DevExpress.Mvvm.DataAnnotations;

namespace Metadata_example {
    [MetadataType(typeof(MetadataExample))]
    public class DataSource_class {
        //data members
    }

    public class MetadataExample : IMetadataProvider<DataSource_class> {
        void IMetadataProvider<DataSource_class>.BuildMetadata(MetadataBuilder<DataSource_class> builder) {
            //data source configurations
        }
    }
}
See Also