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); }
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); } }