请问这样的代码算是逻辑层?还是数据层?
YwToolsDataClassesDataContext ctx = new YwToolsDataClassesDataContext(connDB.conndb(connDB.origin));public YwCompensate GetCompensate(string epcode)
{
Table<YwCompensate> compensateObject = ctx.GetTable<YwCompensate>();
IQueryable<YwCompensate> compensate = from c in compensateObject
where c.U_epbillcode == epcode
select c;
return compensate.FirstOrDefault();
}