/// <summary> /// 设置查询 /// </summary> /// <param name="query"></param> protected override void SetQuerySelect(Winner.Persistence.QueryInfo query) { base.SetQuerySelect(query); if (StorehouseId != 0) { query.SelectExp = string.Format( "{0},Inventories.Count,Inventories.LockCount,Inventories.TransitCount,Inventories.WarningCount,Inventories.Storehouse.Name,Inventories.Storehouse.WarehouseName,Inventories.Storehouse.IsWarehouse", query.SelectExp); } }
protected override void SetQueryWhere(Winner.Persistence.QueryInfo query) { if (!string.IsNullOrEmpty(Request.QueryString["type"])) { var type = (OrderType)Request.QueryString["type"].Convert <int>(); if (string.IsNullOrEmpty(query.WhereExp)) { query.Query <OrderEntity>().Where(it => it.Type == type); } } base.SetQueryWhere(query); }
protected override void SetQueryWhere(Winner.Persistence.QueryInfo query) { query.Query <ContentEntity>() .Where(it => it.Class.Tag == "ERP_Message_Notice"); base.SetQueryWhere(query); }