예제 #1
0
        public Order FindBy(string id)
        {
            Order order = CurrentSession.Get <Order>(id);

            if (order != null)
            {
                NHibernateUtil.Initialize(order.Fills);
            }
            return(order);
        }
예제 #2
0
 public void Delete(Order entity)
 {
     CurrentSession.Delete(entity);
 }
예제 #3
0
 public void AddUpdate(Order entity)
 {
     CurrentSession.SaveOrUpdate(entity);
 }