The Basics
The basics of a collection configuration in Konstrukt, the back office UI builder for Umbraco.
Defining a collection
AddCollection<TEntityType>(Lambda idFieldExpression, string nameSingular, string namePlural, string description, Lambda collectionConfig = null) : KonstruktCollectionConfigBuilder<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) : KonstruktCollectionConfigBuilder<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) : KonstruktCollectionConfigBuilder<TEntityType>
Changing a collection icon color
SetIconColor(string color) : KonstruktCollectionConfigBuilder<TEntityType>
Defining an entity name
SetNameProperty(Lambda nameProperytyExpression) : KonstruktCollectionConfigBuilder<TEntityType>
SetNameFormat(Lambda nameFormatExpression) : KonstruktCollectionConfigBuilder<TEntityType>
Defining a default sort order
SetSortProperty(Lambda sortPropertyExpression) : KonstruktCollectionConfigBuilder<TEntityType>
SetSortProperty(Lambda sortPropertyExpression, SortDirection sortDirection) : KonstruktCollectionConfigBuilder<TEntityType>
Defining time stamp properties
SetDateCreatedProperty(Lambda dateCreatedProperty) : KonstruktCollectionConfigBuilder<TEntityType>
SetDateModifiedProperty(Lambda dateCreatedProperty) : KonstruktCollectionConfigBuilder<TEntityType>
Configuring soft deletes
SetDeletedProperty(Lambda deletedPropertyExpression) : KonstruktCollectionConfigBuilder<TEntityType>
Disabling create, update or delete features
DisableCreate() : KonstruktCollectionConfigBuilder<TEntityType>
DisableCreate(Predicate<KonstruktCollectionPermissionContext> disableExpression) : KonstruktCollectionConfigBuilder<TEntityType>
DisableUpdate() : KonstruktCollectionConfigBuilder<TEntityType>
DisableUpdate(Predicate<KonstruktCollectionPermissionContext> disableExpression) : KonstruktCollectionConfigBuilder<TEntityType>
DisableDelete() : KonstruktCollectionConfigBuilder<TEntityType>
DisableDelete(Predicate<KonstruktCollectionPermissionContext> disableExpression) : KonstruktCollectionConfigBuilder<TEntityType>
MakeReadOnly() : KonstruktCollectionConfigBuilder<TEntityType>
MakeReadOnly(Predicate<KonstruktCollectionPermissionContext> disableExpression) : KonstruktCollectionConfigBuilder<TEntityType>
Set the visibility of the collection
SetVisibility(Predicate<KonstruktCollectionVisibilityContext> visibilityExpression) : KonstruktCollectionConfigBuilder<TEntityType>
Changing a collection connection string
SetConnectionString(string connectionStringName) : KonstruktCollectionConfigBuilder<TEntityType>
Last updated