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.
42 lines
1.0 KiB
42 lines
1.0 KiB
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using QMAPP.FJC.Entity.Basic;
|
||
|
using QMFrameWork.Data;
|
||
|
using System.Data;
|
||
|
using QMAPP.Entity;
|
||
|
|
||
|
namespace QMAPP.FJC.DAL.Basic
|
||
|
{
|
||
|
/// </summary>
|
||
|
/// 模块名称:配置表
|
||
|
/// 作 者:张松男
|
||
|
/// 编写日期:2021年03月17日
|
||
|
/// </summary>
|
||
|
public class AppConfigDAL
|
||
|
{
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取全部规则
|
||
|
/// </summary>
|
||
|
/// <returns></returns>
|
||
|
public AppConfig Get(string Code)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
string sql = $"SELECT * FROM [T_MD_AppConfig_QD] where Code = '{Code}'";
|
||
|
List<DataParameter> parameters = new List<DataParameter>();
|
||
|
using (IDataSession session = AppDataFactory.CreateMainSession())
|
||
|
{
|
||
|
return session.Get<AppConfig>(sql, parameters.ToArray());
|
||
|
}
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
throw ex;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|