Data manipulation Layer Interface

Source: Internet
Author: User

IDataObject (Data manipulation layer interface)

Contents

    • IDataObject
      1. Create (bool Istrans, params sql[] items)
      2. Update (bool Istrans, params sql[] items)
      3. Delete (bool Istrans, params sql[] items)
      4. Get (Sqlsql)
      5. List
        1. List (Sqlsql)
        2. List (T T, page page)
        3. List (String storedproname, CommandType comtype, params idataparameter[] parameters)
        4. List (T T, idataparameter[] par, string storedproname, String Tablename,commandtype comtype, params int[] pageparm)
Create (bool Istrans, params sql[] items)

Add method

Parameters:

    • Istrans: Whether the transaction is enabled
    • Items: Execution Body parameters

Return:

    • Return: Object objects
Update (bool Istrans, params sql[] items)

Update method

Parameters:

    • Istrans: Whether the transaction is enabled
    • Items: Execution Body parameters

Return:

    • Returns: BOOL type data
Delete (bool Istrans, params sql[] items)

Delete Information

Parameters:

    • Istrans: Whether the transaction is enabled
    • Items: Execution Body parameters

Return:

    • Returns: BOOL type data
Get (sqlsql)

Get more information

Parameters:

    • SQL: Execute parameter Script

Return:

    • Return: Returns a record
List (sqlsql)

Get a list based on a parameter script

Parameters:

    • SQL: Execute parameter Script

Return:

    • Back to: Query list data
List (T T, page page)

Paged Get list

Parameters:

    • T: Current entity
    • Page: Paging parameters

Return:

    • Back to: Query list data
List (String storedproname, CommandType comtype, params idataparameter[] parameters)

Delete Information

Parameters:

    • Storedproname: Stored procedure or query string
    • ComType: Interpreting the command string
    • Parameters: Parameters

Return:

    • Back to: Query list data
List (T t,idataparameter[] par,string storedproname,string Tablename,command
Type comtype,params int[] pageparm)

Get Data

Parameters:

    • T: Entity
    • PAR: Entity parameters
    • Storedproname: Stored procedure or query string
    • TableName: Table Name
    • ComType: Interpreting the command string
    • Pageparm: Paging parameter when NULL means no paging

: http://admin.tiaoceng.com/assemblydetail_1.html

Data manipulation Layer Interface

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.