The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
14 views

LINQ group by date - include empty days WITHOUT using join

Using C#, NHibernate, NHibernate to LINQ. Using NHibernate to LINQ, I do not have the JOIN functionality. I can not use QueryOver either. I have a LINQ query that counts the amount of Leads and ...
3
votes
1answer
150 views

Multiple Join Statements with LEFT JOIN to LINQ Expression syntax

I have a slightly complicated SQL query that I'm trying to convert to LINQ Expression syntax as that is what we use for our code base. Everyone online seems to use query syntax though, which is making ...
0
votes
1answer
141 views

The cast to value type 'Decimal' failed because the materialized value is null

I have the following code : public ViewResult Stock(Guid id) { // Get the product form the database var product = productRepository.GetById(id); var viewModel = new ...
0
votes
2answers
101 views

Entity Framework Simple Filter by NavigationProperty using LINQ Methods

I am learning EF and LINQ to EF. We are using LINQ Methods and not LINQ Expressions. I am trying to do a very simple query from my 2 entities. NavigationGroup is a one to many relation to ...
7
votes
1answer
314 views

LINQ - Method vs Query Syntax Difference

I was working with a DataTable and noticed that Resharper recommended that I can convert a loop into a LINQ expression. I did so and it was rewritten in query expression syntax (simplified): var ...