menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ValidationRuleBuilder<T>

    Show / Hide Table of Contents

    Class ValidationRuleBuilder<T>

    Inheritance
    System.Object
    ValidationRuleBuilder<T>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class ValidationRuleBuilder<T>
        where T : class
    Type Parameters
    Name Description
    T

    Constructors

    ValidationRuleBuilder(Column)

    Initializes a new instance of the ValidationRuleBuilder<T> class.

    Declaration
    public ValidationRuleBuilder(Column column)
    Parameters
    Type Name Description
    Column column

    It displays the list of columns

    Methods

    AddRule(String, Object)

    Add the rules or constraints before saving the data to the database.

    Declaration
    public ValidationRuleBuilder<T> AddRule(string key, object value)
    Parameters
    Type Name Description
    System.String key

    It accepts the string as key

    System.Object value

    It passes the object value to define the constraints for saving the data

    Returns
    Type Description
    ValidationRuleBuilder<T>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved