Skip to content

Commit

Permalink
added data transfer objects
Browse files Browse the repository at this point in the history
  • Loading branch information
alimon808 committed Sep 20, 2017
1 parent 3d47101 commit e8af6f3
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ContosoUniversity.Data/DTO/CourseAssignmentsDTO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace ContosoUniversity.Data.DTO
{
public class CourseAssignmentsDTO
{
public int InstructorID { get; set; }
public int CourseID { get; set; }
}
}
11 changes: 11 additions & 0 deletions ContosoUniversity.Data/DTO/CourseDTO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace ContosoUniversity.Data.DTO
{
public class CourseDTO
{
public int ID { get; set; }
public int CourseNumber { get; set; }
public string Title { get; set; }
public int Credits { get; set; }
public int DepartmentID { get; set; }
}
}
13 changes: 13 additions & 0 deletions ContosoUniversity.Data/DTO/DepartmentDTO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;

namespace ContosoUniversity.Data.DTO
{
public class DepartmentDTO
{
public int ID { get; set; }
public int InstructorID { get; set; }
public string Name { get; set; }
public decimal Budget { get; set; }
public DateTime StartDate { get; set; }
}
}
12 changes: 12 additions & 0 deletions ContosoUniversity.Data/DTO/EnrollmentDTO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using ContosoUniversity.Data.Enums;

namespace ContosoUniversity.Data.DTO
{
public class EnrollmentDTO
{
public int ID { get; set; }
public int CourseID { get; set; }
public int StudentID { get; set; }
public Grade? Grade { get; set; }
}
}
12 changes: 12 additions & 0 deletions ContosoUniversity.Data/DTO/InstructorDTO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace ContosoUniversity.Data.DTO
{
public class InstructorDTO
{
public int ID { get; set; }
public string FirstMidName { get; set; }
public string LastName { get; set; }
public DateTime HireDate { get; set; }
}
}
9 changes: 9 additions & 0 deletions ContosoUniversity.Data/DTO/OfficeAssignmentDTO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace ContosoUniversity.Data.DTO
{
public class OfficeAssignmentDTO
{
public int ID { get; set; }
public int InstructorID { get; set; }
public string Location { get; set; }
}
}
12 changes: 12 additions & 0 deletions ContosoUniversity.Data/DTO/StudentDTO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;

namespace ContosoUniversity.Data.DTO
{
public class StudentDTO
{
public int ID { get; set; }
public string FirstMidName { get; set; }
public string LastName { get; set; }
public DateTime EnrollmentDate { get; set; }
}
}

0 comments on commit e8af6f3

Please sign in to comment.