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.

35 lines
910 B

3 years ago
using cd.dapper.extension;
using System.Text;
namespace learun.database.sqlserver
{
/// <summary>
/// 版 本 EasyCode EC管理后台
/// Copyright (c) 2019-present EC管理有限公司
/// 创建人:tobin
/// 日 期:2019.09.09
/// 描 述:oracle sql 适配器
/// </summary>
public class SqlserverAdapter : ISqlAdapter
{
/// <summary>
/// 添加列
/// </summary>
/// <param name="sb">字串构造器</param>
/// <param name="columnName">列名</param>
public void AppendColumnName(StringBuilder sb, string columnName)
{
sb.AppendFormat("[{0}]", columnName);
}
/// <summary>
/// 添加列等一个参数
/// </summary>
/// <param name="sb">字串构造器</param>
/// <param name="columnName">列名</param>
public void AppendColumnNameEqualsValue(StringBuilder sb, string columnName)
{
sb.AppendFormat("[{0}] = @{1}", columnName, columnName);
}
}
}