Data Views Builders
Learn how to configure data views builders in Umbraco UI Builder.
Defining a Data Views Builder
// Example
public class PersonDataViewsBuilder : DataViewsBuilder<Person>
{
public override IEnumerable<DataViewSummary> GetDataViews()
{
// Generate and return a list of data views
}
public override Expression<Func<Person, bool>> GetDataViewWhereClause(string dataViewAlias)
{
// Return a where clause expression for the supplied data view alias
}
}Setting the Data Views Builder of a Collection
Using the SetDataViewsBuilder() Method
SetDataViewsBuilder() MethodMethod Syntax
Example
Using the SetDataViewsBuilder(Type) Method
SetDataViewsBuilder(Type) MethodMethod Syntax
Example
Using the SetDataViewsBuilder(DataViewsBuilder<TEntityType>) Method
SetDataViewsBuilder(DataViewsBuilder<TEntityType>) MethodMethod Syntax
Example
Last updated
Was this helpful?