を取得します(外部キー)を operDtをint型:日時AspNetCore 1.1グループ化とカウントは、私は、次の表を持っているオブジェクト
は私が合計数を計算する必要があります
:同上
でグループ化された缶の行の
コントローラ:
[HttpGet("bydate")]
public IActionResult GetCanMin(DateTime startdt, DateTime endd)
{
var res = this._unitOfWork.Cans.GetCansMin(startdt, endd);
return Ok(res);
}
郵便配達して要求を渡すとき:
http://localhost:56964/api/cansdatas/bydate?startdt=2016-01-01&enddt=2016-12-31
代わりの結果の配列を受けて、私は空のオブジェクトを取得します.... あなたは助けることができます?
へのリポジトリ
を作成し、私はタスク
ああ、そうです。しかし、それはあなたのためにそれを解決しましたか?この修正の前にエラーが発生しました。 – Allrameest
いいえ、それは仕事をしなかった –