我有一个包含许多表的答案的数据库。如果可能的话,我不想像这样为每个表编写相同的代码:
answersDataContext adc = new answersDataContext();
var a0 = (from p in adc.answersfios
where p.userid == userrecord.id
select p);
var a0 = (from p in adc.answersdates
where p.userid == userrecord.id
select p);
Upd:问题如下:我有很多表,如果可能的话,我想写一些类似的东西
var a0 = (from p in adc. ALLTABLES
where p.userid == userrecord.id
select p)