Skip to content

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 the corresponding property in a row, so that they inherit attributes.

[AttributeUsage(AttributeTargets.Class)]
public sealed class BasedOnRowAttribute : Attribute
parameter description
rowType Type of the row.

Public Members

name description
BasedOnRowAttribute(…) An attribute that indicates this type is based on another row type. Used with form, columns etc. types to map their properties to the corresponding property in a row, so that they inherit attributes.
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 [SkipNameCheck] attribute to properties that shouldn't be checked.
RowType { get; } Gets the type of the row.

Remarks

Initializes a new instance of the BasedOnRowAttribute class.

See Also