Skip to content

Attributes

zehavibarak edited this page Oct 27, 2022 · 2 revisions

An attribute is an implicit mapping a known data type.

For example, user department can be mapped to departments, driven from company system.

Custom

[Attribute(DataType = typeof(Ages))]
public class Age: AttributeBase<byte?> {
    private readonly IDocumentContext _ctx;
    public override Task<byte?> GetValueAsync() {
        var profile = UserPrincipal.GetById(_ctx.Document.OwnerId);
        return profile.Age;
    }
}

Attributes can be managed from admin Architecture tool.

Release Notes

Angular npm, Flutter pub.dev and Nuget packages.

Clone this wiki locally