Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public HomeController()
 {
     db = new UnitOfWork();
 }
Ejemplo n.º 3
0
 public IQueryable <Contract> Get()
 {
     Session = ConnectionHelper.CreateSession();
     return(Session.Query <Contract>().AsWrappedQuery());
 }
Ejemplo n.º 4
0
 public SectionController(UnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }