Class CRUDModel<T>
Defines the members of the CRUD arguments send during server request. Use this class to model bind request parameters while using UrlAdaptor.
Inheritance
Namespace: Syncfusion.Blazor.Data
Assembly: Syncfusion.Blazor.dll
Syntax
public class CRUDModel<T> : Object
Type Parameters
Name | Description |
---|---|
T | Type of the data. |
Constructors
CRUDModel()
Declaration
public CRUDModel()
Properties
Action
Specifies the action initiated the request. Possible values are add, update or remove.
Declaration
public string Action { get; set; }
Property Value
Type |
---|
System.String |
Added
Specifies the list of added records while batch editing.
Declaration
public List<T> Added { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<T> |
Remarks
The Added property will holds values on batch editing only.
Changed
Specifies the list of updated records while batch editing.
Declaration
public List<T> Changed { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<T> |
Remarks
The Changed property will holds values on batch editing only.
Deleted
Specifies the list of deleted records while batch editing.
Declaration
public List<T> Deleted { get; set; }
Property Value
Type |
---|
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 |
---|
System.Object |
KeyColumn
Specifies the primary key column name.
Declaration
public string KeyColumn { get; set; }
Property Value
Type |
---|
System.String |
Params
Holds the additional parameters passed.
Declaration
public IDictionary<string, object> Params { get; set; }
Property Value
Type |
---|
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 |
---|
System.String |
Value
Specifies the modified/added record. For batch operation use Added, Changed and Deleted property.
Declaration
public T Value { get; set; }
Property Value
Type |
---|
T |