ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster.Db Class > ExecuteQuery Method : ExecuteQuery(String,OrderedDictionary,DbProvider,String,IZennoTable) Method |
Type: System.String
SQL query.
Type: System.Collections.Specialized
Query parameters.
Type: ZennoLab.InterfacesLibrary.Enums.Db.DbProvider
Data provider type.
Type: System.String
Connection string.
Type: ZennoLab.InterfacesLibrary.ProjectModel.IZennoTable
Table for result data.
public static int ExecuteQuery( string query, OrderedDictionary param, DbProvider provider, string connectionString, ref IZennoTable table )
Type: System.String
SQL query.
Type: System.Collections.Specialized
Query parameters.
Type: ZennoLab.InterfacesLibrary.Enums.Db.DbProvider
Data provider type.
Type: System.String
Connection string.
Type: ZennoLab.InterfacesLibrary.ProjectModel.IZennoTable
Table for result data.
Type: System.Int32
The number of rows affected.
var table = project.Tables["Table 1"]; var rowCount = ZennoPoster.Db.ExecuteQuery("SELECT * FROM User", null, ZennoLab.InterfacesLibrary.Enums.Db.DbProvider.SqlClient, "Data Source=SQLSERVER;Initial Catalog=TestDb;Integrated Security=True;max pool size=500", ref table);
$table = $project.Tables["Table 1"]; $rowcount = ZennoLab\CommandCenter\ZennoPoster::Db::ExecuteQuery("SELECT * FROM User", null, ZennoLab\InterfacesLibrary\Enums\Db\DbProvider::SqlClient, "Data Source=SQLSERVER;Initial Catalog=TestDb;Integrated Security=True;max pool size=500", $table);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.