BasedOnRowAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

An attribute that indicates this type is based on another row type. Used with form, columns etc. types to map their properties to corresponding property in a row, so that they inherit attributes.

[AttributeUsage(AttributeTargets.Class)]
public sealed class BasedOnRowAttribute : Attribute

Public Members

name description
BasedOnRowAttribute(…) Initializes a new instance of the BasedOnRowAttribute class.
CheckNames { get; set; } Gets or sets a value indicating whether to check names. If this is true (by default false), if a property name doesn't exactly match a property in the RowType row, Serenity will raise error. In that case you might add [IgnoreName] attribute to properties that shouldn't be checked.
RowType { get; } Gets the type of the row.

See Also