Пример #1
0
 private void Update([Inject] DataAccess.IPersonDal dal)
 {
     using (BypassPropertyChecks)
     {
         var data = new DataAccess.PersonEntity
         {
             Id   = Id,
             Name = Name
         };
         dal.Update(data);
     }
 }
Пример #2
0
 private void Insert([Inject] DataAccess.IPersonDal dal)
 {
     using (BypassPropertyChecks)
     {
         var data = new DataAccess.PersonEntity
         {
             Name = Name
         };
         var result = dal.Insert(data);
         Id = result.Id;
     }
 }
Пример #3
0
 private void Fetch(DataAccess.PersonEntity data)
 {
     Id   = data.Id;
     Name = data.Name;
 }