Inheritance: OptimizedPersistable
Esempio n. 1
0
 public void RemoveCustomerRelation(Customer customer)
 {
   References.Remove(References.Where(r => r.To == customer.Interactions).First());
   if (References.Count() == 0)
     Unpersist(Session);
 }
Esempio n. 2
0
 public Interaction(Customer customer, User user, SessionBase session)
 {
   session.Persist(this);
   customer.AddInteraction(this);
   user.AddInteraction(this);
 }