I'm going to start a project and the Sql Server
database already exists so I'll take the Database First approach as an example of this article Entity Framework Tutorial . Home
I will create the .emdx file and import the respective tables TB_Customer, TB_Endereco, TB_Product, TB_Ticket, and other associated tables. Home
Let's imagine that I will do the following:
static void Main(string[] args)
{
clienteCTX context = new clienteCTX();
var _model = context.cliente.where(x => x.clienteID).ToList()
}
The above query will return all Entities associated with the Client Entity, correct? Home
Can I disable Lazy Loading
so that I load expression lambda
only data I really need using include
? :
If Yes as I Disable Lazy Loading
in this scenario by adopting DataBase First ?