public void Update(Person person) { t_person entity = _sqlRepository.Find(_ => _.PersonId == person.PersonId).Single(); entity.UpdateEntity(person); _sqlRepository.Commit(); }
public void Create(Person person) { t_person entity = new t_person(); entity.UpdateEntity(person); _sqlRepository.Insert(entity); person.PersonId = entity.PersonId; }