Sunday, 18 August 2013

How should I call model class which is written in MVC?

How should I call model class which is written in MVC?

Hi I have model class which is written in MVC.I am using Ef database first
approach. In model class I have some queries which deals with database. I
have following questions :
1) Is it right way to use database related queries in Model and call that
in controller or view?
2)If yes where I should call this model? In Controller or in view ??
3)How I should call this model? Say for example I have class called
class1.cs in model.How I should call this model?

No comments:

Post a Comment