Passing date parameter to MySql Procedure using Asp.Net MVC
Posted by: Guri Singh
Date: March 03, 2017 02:36AM

Hi I am using MySQL with MVC for one of my dashboard project. All is working fine but now I stuck on a very simple step.

I just want to pass a date parameter to procedure using EF but cant able to do this.

I am using following method to call procedure.

var allData = dbObj.Database.SqlQuery<DayServiceWise>
("CALL SP_DayOperatorWise({dt})").ToList();

and in MySQL proc I have taken dt as date parameter.
Thanks

Options: ReplyQuote


Subject
Written By
Posted
Passing date parameter to MySql Procedure using Asp.Net MVC
March 03, 2017 02:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.