Skip to content

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; }
}
Clone this wiki locally