全局处理问题:public static Model.SGGLDB db = Funs.DB;
This commit is contained in:
@@ -7,7 +7,7 @@ namespace BLL
|
||||
{
|
||||
public static class TestTrainingService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取信息
|
||||
@@ -92,6 +92,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.Training_TestTraining> GetTestTrainingList()
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
return (from x in db.Training_TestTraining orderby x.TrainingCode select x).ToList();
|
||||
}
|
||||
|
||||
@@ -101,7 +102,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.Training_TestTraining> GetEndTestTrainingList()
|
||||
{
|
||||
return (from x in db.Training_TestTraining
|
||||
return (from x in Funs.DB.Training_TestTraining
|
||||
where x.IsEndLever == true
|
||||
orderby x.TrainingCode
|
||||
select x).ToList();
|
||||
|
||||
Reference in New Issue
Block a user