How do I get the context of my table in C # through entity Framework?

0

I am currently using entity framework 5, and what I want to do are queries, inserts, updates through entity framework. I already transferred my BD to an .edmx connection file in .NET. My current problem is that I want to do a test insert, but according to what I read I need a context as such, but I do not know how to get that context to have access to my entity tables.

Current code:

 Context.UploadExcel.Add(Excel); ----- context no contiene definicion de 
                                        UploadExcel

The problem is still the same that does not recognize my tables in the context and I need to get to them to manipulate them.

    
asked by David 03.10.2018 в 18:38
source

1 answer

2

You can find the name of your context in:

  

Web.config / connectionStrings / name of your connection

OR

  

Expand the Model.edmx / Expand the Model.Context.tt / Open the file    Model.Context.cs and in the constructor of the class is the name.

Greetings.

    
answered by 03.10.2018 / 20:38
source