Hello, I'm working with C # and I have the following situation:
I have 2 classes in the system, Order and ProductSold ;
Order contains as property List<ProductSold> ;
In a given ViewModel, I have to get a...
I have done some posts about rest and lambda, and to give an end to this subject (hopefully), I have a question. A colleague here on the site recommended that I create a DTO and bring the database data based on this DTO class and not directly fr...
The thing is very simple indeed. I have a method that takes a name inside a database and compares with the parameter passed in the method and being is equal, return it in the method, otherwise return a string.Empty . It turns out, I'm havi...
I have the following code:
var ret = Monitoramento.List
.Include(p => p.CD)
.ThenInclude(p => p.CargaEntrega)
.ThenInclude(p => p.CargaEntrega.Motorista)
.ThenInclude(p => p.CargaEntr...
What's the difference between Linq to Entities and Lambda Expression?
Is Linq to Entities still used in the Entity Framework or is there something newer?
I have here a% w / o%, which apparently is simple if it were not for the fact that I have these query ai, which I can not tell whether it is * , inner join or some other in the same family .
I need to convert this left...
I have 3 classes being them Contact, Sector, Unit so I have Contact with one-to-many relationship with Sector and Unit generating Json with many layers, making it impossible for JQuery Bootgrid to access these fields.
Checking JQuery Bootgrid...
I'm trying to make a linq query, but it returns the error:
Additional information: The entity or complex type
'WMB.Celielo.Model.CieloToken' can not be constructed in a LINQ to
Entities query.
My query:
var temp = (from tok i...