-
Notifications
You must be signed in to change notification settings - Fork 806
Entity Framework NotNullAttribute [Mapping]
Victor Tomaili edited this page May 3, 2021
·
1 revision
[namespace: Serenity.ComponentModel] - [assembly: Serenity.Core]
This attribute con be used to make a field NotNull. This attribute is applicable on entity row, colunms or form level.
It the field is NotNull the field will be NotNull.
Use //...
[DisplayName("Title"),NotNull]
public String Title
{
get { return Fields.Title[this]; }
set { Fields.Title[this] = value; }
}
Copyright © Serenity Platform 2017-present. All rights reserved.
Documentation | Serene Template | Live Demo | Premium Support | Issues | Discussions