Question
What does NHibernate Session.Evict do?
What does the following code snippet do? Why the use of Evict
?
private void DoEvict(customer cust)
{
AddressRepository.Evict(cust.Address);
cust.Address = AddressRepository.Get(cust.Address.Id);
}
21 18802
21