本文整理汇总了C#中DataAccess类的典型用法代码示例。如果您正苦于以下问题:C#DataAccess类的具体用法?C#DataAccess怎么用?C#DataAccess使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:Page_Load
protectedvoidPage_Load(objectsender,EventArgse)
{
Response.Write("{"employees":[");
stringconnectionstring=
System.Configuration.ConfigurationManager.ConnectionStrings["HuberGoDaddy"].ConnectionString;
DataAccessda=newDataAccess();
System.Data.DataSetds=da.getDataSet(connectionstring,
"selectemployeeid,firstname,lastnamefromhuber_employees");
//iftherearenoemployeesreturned
if(ds.Tables.Count<=0||ds.Tables[0].Rows.Count<=0)
{
Response.Write("{}");
}
else
{
for(inti=0;i
原文链接:http://www.jxszl.com/biancheng/C/556839.html