我正在寻找获得这样的东西的方法:
string _col1 = "first name"; string _name; var query = from c in ctx.Customers select c; _name = query.FirstOrDefault().[_name];
据我所知,我只能获得强类型字段名称,但我想将它们作为字符串变量提供.
c# string entity field
c# ×1
entity ×1
field ×1
string ×1