I would like to use a class example:
public class ClassA
{
public int ID {get;set;}
public string Name {get;set;}
}
as a parameter object to be passed to a stored procedure.
this would be a sample of my call
List<ClassB> result = this.Database.SqlQuery<ClassB>("GetSomeList", ClassA).ToList<ClassB>();
The parameter names in the stored procedure would match the properties of "ClassA".
If I remove the parameters object (ClassA) the call works fine and returns correct results. I would prefer to not use Entityframework designer or add any DB attributes to my entities as they are reusable components. Also if this parameters object can be used to hold Output parameters that would be nice as well. I haven't found any good documentation for using POCO as a parameters object.
This is with EntityFramework6 MVC5