コード例 #1
0
 public int PostAssignmentDetail(Assignments assignmentDetail)
 {
     return(_context.Database.ExecuteSqlCommand($"dbo.AddAssignment @AssinmentID = {assignmentDetail.Id}, @title = {assignmentDetail.Title}, @instructions = {assignmentDetail.Instructions}, @attachment = {assignmentDetail.Attachment}, @duedate ={assignmentDetail.DueDate}, @classid ={assignmentDetail.ClassId}"));
 }