วันอาทิตย์ที่ 27 พฤศจิกายน พ.ศ. 2559

Many-to-Many Relationship in Entity Framework

Public Class Student
    Public Property StudentId() As Integer
    <Required>
    Public Property StudentName() As String
    Public Overridable Property Courses() As ICollection(Of Course)
End Class
 
Public Class Course
    Public Property CourseId() As Integer
    Public Property CourseName() As String
    Public Overridable Property Students() As ICollection(Of Student)
End Class


ไม่มีความคิดเห็น:

แสดงความคิดเห็น