lixiaojun
2024-04-03 671ae51982c4e6671ed23efbffb7c3dd65e3f280
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace Yw.Service.Unit
{
    /// <summary>
    /// DAL辅助类
    /// </summary>
    internal class DALHelper
    {
        /// <summary>
        /// 创建DAL
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public static T CreateDAL<T>()
        {
            var dbType = Settings.UnitParasHelper.Unit.DataBase.DbType;
            return Yw.DALFactory.CreateDAL<T>(dbType);
        }
    }
}