Inheritance: ReferenceTracked
Esempio n. 1
0
 public void RemoveUserRelation(User user)
 {
   References.Remove(References.Where(r => r.To == user.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);
 }