In my ASP.NET web site I created new Entity Data Model and connected it with my MsSql database. Now I can use Model.Student class but that class don't have methods. I tried to add extension methods like
public static class Functions{
public static double calculateStudentScore(this Model.Student s){
//implementation
}
}
When I create new Student and try to call my method, I can't see it, why is so?
For example lets suppose s
is type of Student
double score=s.calculateStudentScore();//I can't see my calculateStudentScore method