I have the procedure procRetornaCliente that receives the following parameters: Id, areaAuthentication, City.
Mapping it to EDMX, I got a Complex Type ( procRetornaClienteModel
) with all fields mapped, but I do not know how to make a query using the Entity Framework, I already researched and every site does a different example.
My structure is as follows:
using (DataBaseAdmin db = new DataBaseAdmin())
{
int id = Session["_id"];
String areaAtuacao = Session["_areaAtuacao"].ToString();
String Cidade = Session["_Cidade"].ToString();
}