Data Access Application Block 2 应用场景

1. 使用DbDataReader从数据库中返回多行 using (IDataReader reader = db.ExecuteReader(CommandType.Text, "Select Name, Address, City From Customers" )) { customerGrid.DataSource = reader; customerGrid.DataBind(); }
相关文章
相关标签/搜索