Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-507

[ADO.NET] CUBRIDDataAdapter's properties of InsertCommand, DeleteCommand are not necessary

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: ADONET-8.4.3, ADONET-9.0.0-b1, ADONET-9.1.0
    • Fix Version/s: ADO.NET 9.2.0.0002
    • Component/s: ADO.NET
    • Labels:

      Description

      Description:
      CUBRIDDataAdapter's properties of UpdateCommand, InsertCommand, DeleteCommand are not necessary.

      Repro Steps:
      (1) set UpdateCommand
      sql = "update t set name='Mandy' where id=1";
      cmd = new CUBRIDCommand(sql, conn);
      adapter.UpdateCommand=cmd;
      adapter.Update(dt);

      (2) set DeleteCommand
      sql = "delete from t where name='Mandy'";
      cmd = new CUBRIDCommand(sql, conn);
      adapter.DeleteCommand=cmd;
      adapter.Update(dt);

      If these properties exist at the same time, CUBRIDDataAdapter.Update() dese not know which one to use.
      So I think UpdateCommand is enough. UpdateCommand. InsertCommand, DeleteCommand are not nessesary.

        Activity

        Hide
        cn15800 谢韦华[Bert] added a comment - - edited

        The properties(InsertCommand, DeleteCommand) inherit from DbDataAdapter,so this is not bug in my opinion.

        msdn: http://msdn.microsoft.com/en-us/library/system.data.common.dbdataadapter_properties.aspx

        Show
        cn15800 谢韦华[Bert] added a comment - - edited The properties(InsertCommand, DeleteCommand) inherit from DbDataAdapter,so this is not bug in my opinion. msdn: http://msdn.microsoft.com/en-us/library/system.data.common.dbdataadapter_properties.aspx
        Hide
        ryin005 Ray Yin added a comment -

        Since the properties are inherited from DbDataAdapter class, this is not a bug

        Close the issue

        Show
        ryin005 Ray Yin added a comment - Since the properties are inherited from DbDataAdapter class, this is not a bug Close the issue

          People

          • Assignee:
            cn15800 谢韦华[Bert]
            Reporter:
            cn15701 cuiman
            CC (Referrer):
            cuiman, Kai Yang (Inactive), 李应
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: