标签:nec user 使用 string cti mod ble manage 安装
/// Dapper 框架应用例子
/// 1. NuGet安装 Dapper
/// 2. using 就可以使用下面例子
string sql = "SELECT SNAME,SUSER,SDATE,SFLAG,SNUM,CST1,CST2 FROM IIDB_SYN";
string connstring = ConfigurationManager.ConnectionStrings["Model2conn"].ConnectionString;
using (IDbConnection db = new SqlConnection(connstring))
{
var idt = db.Query<Mode.IIDB_SYN>(sql);
DataTable dt = ToDataTable(idt);
}
标签:nec user 使用 string cti mod ble manage 安装
原文地址:https://www.cnblogs.com/chirs888888/p/11608117.html