17 lines
483 B
C#
17 lines
483 B
C#
using System.Configuration;
|
|
using System.Data.SqlClient;
|
|
|
|
namespace WX.CRM.DataSynFactory.Dao
|
|
{
|
|
public class WebStore
|
|
{
|
|
private static readonly string _conn = ConfigurationManager.ConnectionStrings["PromotionConn2"].ConnectionString;
|
|
|
|
public static SqlConnection GetConnection()
|
|
{
|
|
DapperExtensions.DapperExtensions.SqlDialect = new DapperExtensions.Sql.SqlServerDialect();
|
|
return new SqlConnection(_conn);
|
|
}
|
|
}
|
|
}
|