26 lines
665 B
C#
26 lines
665 B
C#
using System;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
|
|
namespace BllSql
|
|
{
|
|
// Token: 0x02000002 RID: 2
|
|
public class BllBase : SqlHelper
|
|
{
|
|
// Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
|
|
public DataTable ExecuteReadTable(string Sql)
|
|
{
|
|
SqlConnection conn = SqlHelper.GetConnection();
|
|
DataSet ds = SqlHelper.ExecuteDataset(conn, CommandType.Text, Sql);
|
|
return ds.Tables[0];
|
|
}
|
|
|
|
// Token: 0x06000002 RID: 2 RVA: 0x00002080 File Offset: 0x00000280
|
|
public int ExecuteNonQuery(string Sql)
|
|
{
|
|
SqlConnection conn = SqlHelper.GetConnection();
|
|
return SqlHelper.ExecuteNonQuery(conn, CommandType.Text, Sql);
|
|
}
|
|
}
|
|
}
|