Skip to content

Instantly share code, notes, and snippets.

View stbraley's full-sized avatar

Todd Braley stbraley

View GitHub Profile
@stbraley
stbraley / QueryExecutioner.cs
Last active February 15, 2024 14:13
Uses Expression Trees to create a LINQ query that allows you to sort and filter a collection of object or entity framework models using a data struct that can easily be sent to the client.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Security.Cryptography.X509Certificates;
namespace Query
{