using WIDESEA_Core.BaseRepository;
|
using WIDESEA_IRepository;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_Repository
|
{
|
public class Dt_OutOrderProductionRepository : RepositoryBase<Dt_OutOrderProduction>, IDt_OutOrderProductionRepository
|
{
|
public Dt_OutOrderProductionRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage)
|
{
|
}
|
|
/// <summary>
|
/// 插入数据返回主键
|
/// </summary>
|
/// <param name="production">实体数据</param>
|
/// <returns>主键ID</returns>
|
public int InsertOrderProduction(Dt_OutOrderProduction production)
|
{
|
return Db.Insertable(production).ExecuteReturnIdentity();
|
}
|
}
|
}
|