ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster.Db Class > ExecuteQuery Method : ExecuteQuery(String,OrderedDictionary,DbProvider,String,IZennoList,String) 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.IZennoList
List for result data.
Type: System.String
Field separator.
public static int ExecuteQuery( string query, OrderedDictionary param, DbProvider provider, string connectionString, ref IZennoList list, string separator )
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.IZennoList
List for result data.
Type: System.String
Field separator.
Type: System.Int32
The number of rows affected.
var list = project.Lists["List 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 list, " | ");
$list = $project.Lists["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", $list, " | ");
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.