Repository navigation
model configuration attributes
vijay@envivo edited this page Sep 11, 2026
·
2 revisions
The quickest way to apply configurations is through the use of Attributes. Attributes can be applied to classes, interfaces, properties, methods, and method parameters, depending on their usage. If your model is constantly being updated and refactored, considering using this technique.
Here are a few examples of attributes being used:
[AllowedOperations(canCreate: true)] //👈
public class MyEntity
{
}[UI(preferredControl: UiControlType.TextArea)] //👈
public string Comments { get; set; }[Visible(false)]
public void ExecuteAction()
{
...
}public void ExecuteAction(
[Required] DateTime? actionedAt //👈
)
{
...
}You can find more details in the Configuration Options section.
Copyright © 2022-2026 Envivo Software
-
Objects
-
Configuring your Model
-
Testing your model
-
Other features