InsertableAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Controls if this field is editable in new record mode. When used with fields, turns on or off the insertable flag.
[AttributeUsage(AttributeTargets.All)]
public class InsertableAttribute : Attribute
| parameter | description |
|---|---|
| insertable | True to make the field insertable. |
Public Members
| name | description |
|---|---|
| InsertableAttribute(…) | Controls if this field is editable in new record mode. When used with fields, turns on or off the insertable flag. |
| Value { get; } | Gets a value indicating whether this InsertableAttribute is enabled. |
Remarks
When placed on a field, this attribute controls whether the field is included when inserting a new record.
See Also
- Source: InsertableAttribute.cs