예제 #1
0
 public IQueryable <BaseDocument> GetLinkedDocuments([FromODataUri] int key)
 {
     Session = ConnectionHelper.CreateSession();
     return(Session.Query <Contract>().AsWrappedQuery().Where(m => m.ID == key).SelectMany(t => t.LinkedDocuments));
 }
예제 #2
0
 public HomeController()
 {
     db = new UnitOfWork();
 }
예제 #3
0
 public IQueryable <Contract> Get()
 {
     Session = ConnectionHelper.CreateSession();
     return(Session.Query <Contract>().AsWrappedQuery());
 }
예제 #4
0
 public SectionController(UnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }