Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IList<WorkOrder> FindBy(string fromDate, string toDate)
- {
- IQuery query = _currentSession.CreateQuery("from WorkOrder wo where wo.Date >= ? and wo.Date <= ?");
- query.SetParameter(0, fromDate);
- query.SetParameter(1, toDate);
- return query.List<WorkOrder>();
- }
- Session.Update(obj);
- Session.Evict(obj);
Add Comment
Please, Sign In to add comment