【发布时间】:2020-06-19 15:05:37
【问题描述】:
我在模型中有这个类
public class AssignStudentDetails
{
public string StudentName { get; set; }
public string TeacherName { get; set; }
}
这是我的 BLL 层,我想将 Addstudentdetails 添加到列表中,然后将其传递给 DAL 层
public void AddStudentsList(AssignStudentDetails AddStudentDetails)
{
//code how to add addstudentdetails and pass to DAL
}
public void AddStudentDAL(//what i have to pass here?)
{
//my sql connection i will write here
}
请告诉我怎么做
【问题讨论】:
-
您能澄清一下您的问题吗?你想达到什么目标,到目前为止你遇到了什么问题?
-
我已经编写了用于插入学生姓名和教师姓名的 SQL 连接,现在我想将数据从 Assignstudent 详细信息类传递到 BLL 层,从 BLL 到 DAL 函数我必须传递值
标签: c# asp.net-mvc model-view-controller