using HH.WMS.Common;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace HH.WMS.DAL
|
{
|
/// <summary>
|
/// 创建业务逻辑层类
|
/// </summary>
|
public static class DALCreator
|
{
|
/// <summary>
|
/// 创建业务实例
|
/// </summary>
|
/// <typeparam name="T">业务层类型</typeparam>
|
/// <returns>业务实例</returns>
|
public static T Create<T>()
|
where T : BaseDAL, new()
|
{
|
return ObjectCreator.Create<T>();
|
}
|
|
public static T CreateErp<T>()
|
where T : ErpBaseDAL, new()
|
{
|
return ObjectCreator.Create<T>();
|
}
|
}
|
}
|