wx.SqlServer/DbBase.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wx.Config;
using wx.Data;
namespace wx.SqlServer
{
/// <summary>
/// 数据操作实例化
/// </summary>
public class DbBase : IDbBase
{
/// <summary>
/// 表前缀
/// </summary>
protected string Prefix;
public DbBase()
{
TablePrefix prefix = new TablePrefix();
Prefix = prefix.Prefix;
DbHelper.Provider = this;
}
#region IDbBase 成员
public System.Data.Common.DbCommand CreateCommmand()
{
return new SqlCommand();
}
public System.Data.Common.DbConnection CreateConnection()
{
return new SqlConnection();
}
public System.Data.Common.DbDataAdapter CreateAdapter()
{
return new SqlDataAdapter();
}
public System.Data.Common.DbParameter CreateParameter()
{
return new SqlParameter();
}
public System.Data.Common.DbDataReader CreateReader()
{
return null;
}
#endregion
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。