コード例 #1
0
 public BuyerDetail Add(BuyerDetail buyerDtl)
 {
     _unitOfWork.Repository <BuyerDetail>().Insert(buyerDtl);
     return(buyerDtl);
 }
コード例 #2
0
 public void Delete(BuyerDetail buyerDtl)
 {
     _unitOfWork.Repository <BuyerDetail>().Delete(buyerDtl);
 }
コード例 #3
0
 public void Update(BuyerDetail buyerDetail)
 {
     buyerDetail.ObjectState = ObjectState.Modified;
     _unitOfWork.Repository <BuyerDetail>().Update(buyerDetail);
 }
コード例 #4
0
 public BuyerDetail Create(BuyerDetail buyerDetail)
 {
     buyerDetail.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <BuyerDetail>().Insert(buyerDetail);
     return(buyerDetail);
 }