Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

linq

Select all distinct last records of column1 and order by column2 in Linq (Not Working Accordingly)

September 3, 2022 by Magenaut

So I have a table like this:

Categories ASP.NET, Q&A Tags asp.net, c#, database, linq, sql Leave a comment

Linq count and sum in join

September 3, 2022 by Magenaut

I want to get rows with the count column and sum column like in the SQL command ... count(column1.table1) as countname, sum(column2.table1) as sumname ..., but I don’t know the right way to write it in Linq, for the example:

Categories ASP.NET, Q&A Tags asp.net, c#, linq, linq-to-sql Leave a comment

add nested group by query Linq to property model class ASP.NET

September 3, 2022 by Magenaut

I have struggle with adding the grouped data table with linq query to model property.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, linq, linq-to-sql Leave a comment

LINQ method to return values as a single object including a nested array

September 3, 2022 by Magenaut

Goal: Returning a single object of sum and a list of details.
{ Sum: 1, [ { Amount: 2, Hex: '#123456' }, { Amount: 1, Hex: '#123456' } ] }

Categories ASP.NET, Q&A Tags asp.net, c#, linq Leave a comment

Trying Extract List of Categories with Corresponding Tickets using Linq

September 3, 2022 by Magenaut

I am trying to extract list of Categories with the corresponding Tickets for a specific userId using Linq Lambda expression.

Categories ASP.NET, Q&A Tags asp.net, c#, entity-framework-core, lambda, linq Leave a comment

i got this exception in .net when try to compare date in linq

September 3, 2022 by Magenaut

The specified type member ‘Date’ is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, c#, entity-framework, linq Leave a comment

Is there a good LINQ way to do a cartesian product?

September 3, 2022 by Magenaut

I have a class structure like so:

Categories ASP.NET, Q&A Tags asp.net, c#, cartesian-product, linq, sql Leave a comment

The result of a query cannot be enumerated more than once

September 3, 2022 by Magenaut

I am using the entity framework (ef) and am getting the following error:

Categories ASP.NET, Q&A Tags asp.net, c#, entity-framework, entity-framework-4, linq Leave a comment

Will using LINQ to SQL help prevent SQL injection

September 2, 2022 by Magenaut

I’m setting up a public site and the first thing on my mind is SQL injection. I have some text fields I’m saving and am using linq to update/write to the database. Am I safe using linq?

Categories ASP.NET, Q&A Tags asp.net, c#, linq, linq-to-sql Leave a comment

How to make LINQ execute a (SQL) LIKE range search

September 2, 2022 by Magenaut

I am in big need of help, i have been trying to do this for some time now.

Categories ASP.NET, Q&A Tags asp.net, c#, linq, linq-to-sql, sql Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page14 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress