DataValidation.ValidateRequired method (1 of 2)

namespace: Serenity.Services   assemblySerenity.Net.Services

Validates that the field does not contain a null value or an empty string.

public static void ValidateRequired(this IRow row, Field field, ITextLocalizer localizer)
parameter description
row Row instance
field Field
localizer Text localizer

See Also


DataValidation.ValidateRequired method (2 of 2)

namespace: Serenity.Services   assemblySerenity.Net.Services

Validates the fields does not contain null or empty string values. This does not validate unassigned fields that does not have a default value.

public static void ValidateRequired(this IRow row, IEnumerable<Field> fields, 
    ITextLocalizer localizer)
parameter description
row Row instance
fields List of fields
localizer

See Also