Skip to content

EntityFieldExtensions class

namespace: Serenity.Data   assembly: Serenity.Net.Services

Contains static extension methods for Field objects.

public static class EntityFieldExtensions

Public Members

name description
static AutoTrim(…) Automatically performs trim on field value based on the field flags TrimToEmpty and Trim.
static EnumerateTableFields(…) Gets a dictionary of table fields (e.g. not a foreign or calculated field) in a row.
static GetAttribute<TAttribute>(…) Gets the attribute.
static GetAttributes<TAttribute>(…) Gets the attributes.
static GetTableFields(…) Gets a dictionary of table fields (e.g. not a foreign or calculated field) in a row.
static IsSensitiveFieldBasedOnInterfaces(…) Returns true if the field is a sensitive field based on the row implementing interfaces like IPasswordRow (e.g. its password hash / salt), regardless of its name. This complements the name based detection in RowFieldsBase. The caller is responsible for checking any explicit attributes (e.g. MinSelectLevelAttribute) that may opt the field out of the default protection.
static IsTableField(…) Checks to see if field is an actual table field, e.g. not a foreign or calculated field. This is determined by field flags and having expression.
static OfJoin<TField>(…) Returns a new field with an expression using the specified join alias. Avoid using.

See Also