예제 #1
0
        public static ProjectDetailEntity ProjectDetailMapper(ta_ussbk_ProjectDetail tentity)
        {
            var resultl = new ProjectDetailEntity
            {
                amtdtid       = tentity.amtdtid,
                projectdetail = tentity.projectdetail,
            };

            return(resultl);
        }
예제 #2
0
 public long Create(ProjectDetailEntity tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new ta_ussbk_ProjectDetail
         {
             projectdetail = tentity.projectdetail,
         };
         _unitOfWork.ProjectDetailRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.amtdtid);
     }
 }