9
ASC で注文する正しい構文は何ですか?注文構文ASC
エラー1名 'ASC' を昇順ため、現在のコンテキスト
public IEnumerable<DTO> GetGrid(String ShipNumber)
{
try
{
ORepository rep = new ORepository();
var query = rep.GetAll()
.Where(x => x.SHIP == ShipNumber)
.Orderby (x.City ASC)
.Select(g => new DTO
{
CUSTOMER_NAME = g.CUSTOMER_NAME,
CITY = g.CITY,
SHIP = g.SHIP,
});
return query;
短く単純です。ありがとう! – Si8