EntityExtensions Class
- Namespace:
- Weavy.Core.Helpers
- Assembly:
- Weavy.Core.dll
Helper methods for entities.
public static class EntityExtensions
- Inheritance:
- System.Object → EntityExtensions
Methods
Assert(IEntity, Permission, User) | Throws a ForbiddenException if a user does not have the requested permission to an entity. |
Boost(IEntity) | Gets the boost factor for the fulltext index. |
Css |
CSS class for an entity. |
Get |
Returns the name of a material design icon to use for the entity type. |
Has |
Check if the current user has the requested permission to the specified entity. |
Has |
Returns true if the entity has a value otherwise false. |
Kind(IEntity) | Returns a label that is suitable for display in lists and search results. |
Meta |
Gets meta data for the specified app. |
Meta |
Gets meta data for the specified content item. |
Pluralize(Entity |
Returns the plural name of en entity type. |
Value(IEntity, Boolean) | Returns the actual underlying value of an IEntity. |