-
Notifications
You must be signed in to change notification settings - Fork 2
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.
[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.
Moding Ltd.