DbCommand Property

Hi,

I want to create a property that will handle SqlCommand and OleDbCommand values.

for that I defined this propery:

public DbCommand DbCmdProperty

{

set { DbCmd = value; }

get { return DbCmd; }

}

how can I get a "Name" value in the Properties Window on the Designer, that will tell me if I'm working with a SqlCommand or OleDbCommand

(Hoped I succeeded to describe my problom correctly...)



Answer this question

DbCommand Property

  • *Rick*

    I’m not sure you can do it in the properties window designer.

    Sorry



  • cplusplus1

    I read your question but I'm not understood what you means



  • Doug DeBug

    I just want to keep in the Properties window on the Designer, all the DbCommand values (Command Text, Command Timeout, Command Type, exc.) and add to them a value called "Name", that will hold a string.

    Can it be done


  • ubisoft

    This is problematic for a number of reasons.

    1. You are trying to add a property to an existing class (This can be done, but it's probably more work than you want to do (and definitely more work than I want to explain))
    2. You want a design-time property to view something which it appears you are setting at run-time.



  • bitbonk

    Anybody
  • DbCommand Property