以下代码段的作用是什么?为什么要使用Evict?
Evict
private void DoEvict(customer cust) { AddressRepository.Evict(cust.Address); cust.Address = AddressRepository.Get(cust.Address.Id); }
nhibernate evict
evict ×1
nhibernate ×1