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.
Selectフィールド A、B、C を持つテーブルのクエリを LINQ で作成する必要があります。値Aとを取得する必要がありますA - B。
Select
A
A - B
これを試して:
from t in yourTable select t.A, t.A - t.B
試すSelect(r = new { r.A, Difference = r.A - r.B })
Select(r = new { r.A, Difference = r.A - r.B })