You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
735 B
29 lines
735 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Data;
|
|
|
|
namespace Stone.DataService.Biz.BizPublic
|
|
{
|
|
public class MyDataSet
|
|
{
|
|
/// <summary>
|
|
/// ½«×Ö·û´®×ª»»ÎªDataSet
|
|
/// </summary>
|
|
/// <param name="str"></param>
|
|
/// <returns></returns>
|
|
public static DataSet GetDataByString(string str)
|
|
{
|
|
DataSet dsData = new DataSet();
|
|
DataTable dtData = new DataTable();
|
|
dtData.Columns.Add("Str");
|
|
dsData.Tables.Add(dtData);
|
|
|
|
DataRow drData = dsData.Tables[0].NewRow();
|
|
drData["Str"] = str;
|
|
dsData.Tables[0].Rows.Add(drData);
|
|
|
|
return dsData;
|
|
}
|
|
}
|
|
}
|
|
|