Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 21, 2012 09:51 AM by Richey
Feb 15, 2012 08:50 AM|LINK
How to get out parameter of Mysql routines using EntityFramework.
Thanks in advance!
Feb 15, 2012 08:55 AM|LINK
Output parameters are returned in ObjectParameter instance. So you can use following code:
var result = new ObjectParameter("dbOutParamName", typeof(string));
var result = ctx.MyFunction("XYZ", result).ToList();
var data = result.Value.ToString();
Feb 15, 2012 09:50 AM|LINK
Your code works good for sqlserver.
But same code will not work of MySql.
I'm getting null as outparamter
Feb 21, 2012 09:51 AM|LINK
You can refer to the below links. It has a complete sample in the below link about how to access MySql in .net.