コード例 #1
0
ファイル: GsMapperConfig.cs プロジェクト: gssaini7/ebrickkiln
        public static DbManagerEntity DbManagerEntityMapper(Ta_Manager tentity)
        {
            var resultl = new DbManagerEntity
            {
                mid      = tentity.mid,
                mguid    = tentity.mguid,
                mcontent = tentity.mcontent,
                mrowtype = tentity.mrowtype,
            };

            return(resultl);
        }
コード例 #2
0
 public long Create(DbManagerEntity tentity)
 {
     using (var scope = new TransactionScope())
     {
         var NewRecord = new Ta_Manager
         {
             //mguid = tentity.mguid,
             mcontent = tentity.mcontent,
             mrowtype = tentity.mrowtype,
         };
         _unitOfWork.ManagerRepository.Insert(NewRecord);
         _unitOfWork.Save();
         scope.Complete();
         return(NewRecord.mid);
     }
 }