-
Notifications
You must be signed in to change notification settings - Fork 806
Entity Framework InsertableAttribute [Common]
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 insertable or not. This attribute is applicable on entity row or form level.
public class InsertableAttribute: Attribute
{
public InsertableAttribute(bool insertable = true);
public bool Value { get; }
}
Use
[BasedOnRow(typeof(Entities.XYZRow))]
public class XYZForm
{
[Insertable(false)]
public Int32 IdCode { get; set; }
[...]
See also:
Copyright © Serenity Platform 2017-present. All rights reserved.
Documentation | Serene Template | Live Demo | Premium Support | Issues | Discussions