string str = ConfigurationManager.AppSettings["DBName"].ToString();
public Studal ss()
{
Assembly ass = Assembly.Load("Studal");
Studal t = (Studal)ass.CreateInstance(str+".Studal");
return t;
}

/// <summary>
/// /显示分页
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public PagesOut<Stu> GetDataList(ProcPrams model)
{
return ss().GetDataList(model);
}

 

/// <summary>
/// 添加
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public int InsertData(Stu model)
{

return ss().InsertData(model);
}

/// <summary>
/// 删除
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public int DeleteData(int id)
{
return ss().DeleteData(id);
}

//根据id获取
public Stu GetId(int id)
{
return ss().GetId(id);
}

/// <summary>
/// 修改
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public int UpdataData(Stu model)
{

return ss().UpdataData(model);
}