menu

ASP.NET MVC

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

    Show / Hide Table of Contents

    Class CRUDModel<T>

    Used to model bind the values while performing CRUD operation using DataManager.

    Inheritance
    System.Object
    CRUDModel<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 CRUDModel<T>
        where T : class
    Type Parameters
    Name Description
    T

    The element type used by the record from the request body

    Constructors

    CRUDModel()

    Declaration
    public CRUDModel()

    Properties

    Action

    Specifies the action initiated the request.

    Declaration
    public string Action { get; set; }
    Property Value
    Type Description
    System.String

    Added

    Specifies the List<> added records while batch editing.

    Declaration
    public List<T> Added { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T>
    Remarks

    The Added property will holds values on batch editing only

    Changed

    Specifies the List<> updated records while batch editing.

    Declaration
    public List<T> Changed { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T>
    Remarks

    The Changed property will holds values on batch editing only

    Deleted

    Specifies the List<> deleted records while batch editing.

    Declaration
    public List<T> Deleted { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<T>
    Remarks

    The Deleted property will holds values on batch editing only

    Key

    Specifies the Primary key value.

    Declaration
    public object Key { get; set; }
    Property Value
    Type Description
    System.Object

    KeyColumn

    Specifies the Primary key column name.

    Declaration
    public string KeyColumn { get; set; }
    Property Value
    Type Description
    System.String

    Params

    Holds the additional parameters passed.

    Declaration
    public IDictionary<string, object> Params { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>

    Table

    Specifies the Table name(if any) to be updated.

    Declaration
    public string Table { get; set; }
    Property Value
    Type Description
    System.String

    Value

    Specifies the modified/added record.

    Declaration
    public T Value { get; set; }
    Property Value
    Type Description
    T
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved