I have tables in the database named
Students (StudentId,Name,Address)
Subjects (SubjectId,SubName)
Stud_Subjects (StudentId,SubjectId)
And I hv created c# classes for Student and Subject. I want to take data from Stud_Subjects table do i need to create another class named "Stud_Subject". How to add add properties to that class.
lets say I want to get data joining these tables and the result should be like this.
(StudentId,Name,SubName)
How to map these result into C# class. do i have to create another class with above three fields.
Stud_Subjects? Post the table definition