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.
linq を使用したいときに名前グループの列がある linq キーワードと syn-tacks エラーでこのエラーが発生する
例えば
var b=(from a in city.tbl_family where a.group==1 select a)
エラーを教えてくださいa.group==1
a.group==1
書いてみてください:
var b=(from a in city.tbl_family where a.@group==1 select a)
@ 記号を使用すると、C# の予約語を変数名などとして使用できます。たとえば、次のように記述できます。
var @class = "My text";
@記号なしでコンパイラエラーが発生する場所。