I'm trying to figure out a way to pass this .cs file a
variable from
form so that I can build a custom query block.
Example of what this file contains that I want to modify.
this._commandCollection[0].CommandText =
"SELECT *
FROM *
WHERE *";
this._commandCollection[0].CommandType =
System.Data.CommandType.Text;
Example of what I wish to do.
this._commandCollection[0].CommandText =
"SELECT *
FROM *
WHERE " + myQueryString;
this._commandCollection[0].CommandType =
System.Data.CommandType.Text;
When you call this function from your form, its linked to a
name like
"fill" which is lower in the DataSet.Designer.cs
file.
You call it with something like the following. This is from
form.cs
this.tbAdapter.Fill(this.DataSet.tb);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|