统计查询基本信息

/// <summary>
/// 统计查询教师基本信息
/// </summary>
/// <param name="whereList">查询条件</param>
/// <returns>教师信息实体列表</returns>
public List<TeacherBaseView> FindTeacherStat(List<Condition> whereList)
{
List<TeacherBaseView> list = new List<TeacherBaseView>();
string condition = SerializeString.GetStrWhere(whereList);
using (NewTrainingEntities context = new NewTrainingEntities())
{
string sql = string.Format("select * from TeacherProfessionTeacherView where " + condition);
list = context.ExecuteStoreQuery<TeacherBaseView>(sql).ToList();
}
return list;
}

posted on 2019-12-12 08:29  newlives  阅读(146)  评论(0编辑  收藏  举报