Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
BLtoolkit の LINQ クエリに定数を追加しようとしています。
var query = dbManager.Table.Select(x=>new { x.column, cnst = 1 });
ただし、結果には「column」列のみがあり、「cnst」列はありません。
これも機能するはずです:
var query = dbManager.Table.Select(x=>new { column = x.column, cnst = 1 });
代わりにこのフォームを試してください:
var query = from x in dbManager.Table select new { x.column, cnst = 1 };