The Basics
The basics of a collection configuration in Umbraco UI Builder, the backoffice UI builder for Umbraco.
Defining a collection
AddCollection<TEntityType>(Lambda idFieldExpression, string nameSingular, string namePlural, string description, Lambda collectionConfig = null) : CollectionConfigBuilder<TEntityType>
// Example
folderConfig.AddCollection<Person>(p => p.Id, "Person", "People", "A collection of people", collectionConfig => {
...
});AddCollection<TEntityType>(Lambda idFieldExpression, string nameSingular, string namePlural, string description, string iconSingular, string iconPlural, Lambda collectionConfig = null) : CollectionConfigBuilder<TEntityType>
// Example
folderConfig.AddCollection<Person>(p => p.Id, "Person", "People", "A collection of people", "icon-umb-users", "icon-umb-users", collectionConfig => {
...
});Changing a collection alias
SetAlias(string alias) : CollectionConfigBuilder<TEntityType>
Changing a collection icon color
SetIconColor(string color) : CollectionConfigBuilder<TEntityType>
Defining an entity name
SetNameProperty(Lambda namePropertyExpression) : CollectionConfigBuilder<TEntityType>
SetNameProperty(Lambda namePropertyExpression, string heading) : CollectionConfigBuilder<TEntityType>
SetNameFormat(Lambda nameFormatExpression) : CollectionConfigBuilder<TEntityType>
Defining a default sort order
SetSortProperty(Lambda sortPropertyExpression) : CollectionConfigBuilder<TEntityType>
SetSortProperty(Lambda sortPropertyExpression, SortDirection sortDirection) : CollectionConfigBuilder<TEntityType>
Defining time stamp properties
SetDateCreatedProperty(Lambda dateCreatedProperty) : CollectionConfigBuilder<TEntityType>
SetDateModifiedProperty(Lambda dateCreatedProperty) : CollectionConfigBuilder<TEntityType>
Configuring soft deletes
SetDeletedProperty(Lambda deletedPropertyExpression) : CollectionConfigBuilder<TEntityType>
Disabling create, update or delete features
DisableCreate() : CollectionConfigBuilder<TEntityType>
DisableCreate(Predicate<CollectionPermissionContext> disableExpression) : CollectionConfigBuilder<TEntityType>
DisableUpdate() : CollectionConfigBuilder<TEntityType>
DisableUpdate(Predicate<CollectionPermissionContext> disableExpression) : CollectionConfigBuilder<TEntityType>
DisableDelete() : CollectionConfigBuilder<TEntityType>
DisableDelete(Predicate<CollectionPermissionContext> disableExpression) : CollectionConfigBuilder<TEntityType>
MakeReadOnly() : CollectionConfigBuilder<TEntityType>
MakeReadOnly(Predicate<CollectionPermissionContext> disableExpression) : CollectionConfigBuilder<TEntityType>
Set the visibility of the collection
SetVisibility(Predicate<CollectionVisibilityContext> visibilityExpression) : CollectionConfigBuilder<TEntityType>
Changing a collection connection string
SetConnectionString(string connectionStringName) : CollectionConfigBuilder<TEntityType>
Last updated
Was this helpful?