Skip to content

Generate metadata #215

@zpqrtbnk

Description

@zpqrtbnk

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions