qinchulong
2024-10-12 b17d60113095491a95557f6f785cb1c0e744e8cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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();
        }
    }
}