private void Update([Inject] DataAccess.IPersonDal dal) { using (BypassPropertyChecks) { var data = new DataAccess.PersonEntity { Id = Id, Name = Name }; dal.Update(data); } }
private void Insert([Inject] DataAccess.IPersonDal dal) { using (BypassPropertyChecks) { var data = new DataAccess.PersonEntity { Name = Name }; var result = dal.Insert(data); Id = result.Id; } }
private void Fetch(DataAccess.PersonEntity data) { Id = data.Id; Name = data.Name; }