UpdatableAttribute [Common]

Estrusco edited this page Sep 8, 2016 · 3 revisions
Clone this wiki locally

[namespace: Serenity.ComponentModel] - [assembly: Serenity.Core]

This attribute con be used to make a field updatable or not. This attribute is applicable on entity row, colunms or form level.

It the field is Updatable(false) the field will be updated only in insert mode.

public class UpdatableAttribute : Attribute
    public UpdatableAttribute(bool updatable = true);

    public bool Value { get; }


public class XYZForm
   public Int32 IdCode { get; set; }

See also: