vileruby
❔ Repository pattern
so in the following example does look correct to you, in the scenario where you are trying to save 2 entities in one go?
private DbContext _context;
public void SaveStudentInfo(Student student, Attendance attendence)
{
_context.student.ExecuteUpdateAsync();
_context.attendance.ExecureUpdateAsync();
}
This is just an example off the top of my head, for learning purposes21 replies