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.
30 lines
735 B
30 lines
735 B
3 years ago
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|