Skip to content

Magenaut

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

linq

How can I make a cumulative filter with LINQ?

September 4, 2022 by Magenaut

This is my method, I am filtering by only one, I need them to be cumulative

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

How to remove all instances inside a list where a contained list does not contain all values given? help please

September 4, 2022 by Magenaut

So I am trying to set up a searching system, for which I need to go through each ‘book’ in a list and remove each one that does not match the given ‘genres’. each book contains a list of genre ID’s.

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

Average of the difference of two DateTime objects with GroupBy in LINQ query

September 4, 2022 by Magenaut

I am developing an ASP.NET Core 3.1 project. I want to group Services in Tickets based on the average of the difference between CreatedTime and ModifiedTime of Tickets.

Categories ASP.NET, Q&A Tags asp.net, asp.net-core, entity-framework, group-by, linq Leave a comment

Too much data in Contains (Linq): How to increase performace

September 4, 2022 by Magenaut

I have a linq query like this:

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

How do I get a spatial value from EF Core’s FromSqlRaw

September 4, 2022 by Magenaut

Recently I’ve encountered a problem where I just had to use FromSqlRaw to my db to execute the function of one of Postgresql extensions. This function returns a single entry, and I want to get value of this entry somehow. However, for some reasons I can’t do it this way:

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

LINQ / C# Remove all items from a list that are in multiple other lists

September 4, 2022 by Magenaut

I have the following setup:

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

Using Select and Where in a List using LINQ statement

September 4, 2022 by Magenaut

This is the MySQL table.

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

How to sum the values of a specific column attribute of individual rows returned using a LINQ expression? (C#)

September 4, 2022 by Magenaut

I want to single out the rows of a table using a LINQ expression based off a certain passed value and then sum a specific column attribute of each of these rows while keeping the individual sums of the rows separate to one another.

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

LINQ methods can be used to extract a single element from an List?

September 4, 2022 by Magenaut

This is a datatable in C# ASPNET

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

How can i compare date without time part in linq?

September 4, 2022 by Magenaut

How can I compare date without Time part in Nullable DateTime? In my model I have datetime field as

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, linq Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 … 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