-1

Possible Duplicate:
How to use SQL user defined functions in .NET?

Say I have created a SQL Server function function1(int a,int b) in my database, now how can I call this function in MVC3 controller ?

2
  • 3
    I think you should do that in model, not in controller. Model consists of application data and the controller mediates input, converting it to commands for the model or view. Commented Jul 4, 2012 at 20:15
  • Pabloker is correct. You call the function in your SQL. And your SQL comprises the model. Commented Jul 4, 2012 at 20:33

1 Answer 1

0

You would use either ADO.NET or any one of many other database technologies.

Sign up to request clarification or add additional context in comments.

1 Comment

Then you want to do this

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.