-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
Milestone
Description
This is a feature that handles issues #157, #145... and PR #122. Idea is to expose a MB
static class (name can be configured) that gives access to models metadata.
Usage:
// get the alias of a content type
var typeAlias = MB.ContentAlias.MyType;
// gets the alias of a property type
var propertyAlias = MB.PropertyAlias.MyType.MyProperty;
// gets the published content type of a content type
var type = MB.ContentType.MyType;
// gets the published property type of a property type
var type = MB.PropertyType.MyType.MyProperty;
Aliases are generated as string constants, and thus can be used in code with minimal overhead.
This feature is open for comment.
enkelmedia