New to site?


Lost password? (X)

Already have an account?


(X)

Presents

#CSHARPCON20

The C# Corner Annual Conference 2020 is a three-day annual event for software professionals and developers.

3
DAYS
72
SPEAKERS
65
SESSIONS

Magnus Mårtensson
Microsoft Regional Director, Azure MVP, CEO Loftysoft

Avirag Jain
Director & CTO R Systems

Mahesh Chand
Founder C# Corner, CEO Mindcracker

Chris Gali
CEO & Co-Founder Graphite

Subinder Khurana
Chief Architect StoryProcess, Founder NASSCOM DeepTech Club

Bryan Rishforth
Investor, Chairman Graphite

Bryn Everson
Director Biz Dev Graphite

Raj Tiwari
Digital Transformation Leader, Futurist and Visionary

Joseph Guadagno
Microsoft MVP, Lead Quicken Loans

Nikita Sachdev
Entrepreneur, Blockchain Enthusiast & Advisor, Social Media Influencer

Doug Wagner
COO & Founder Adapt Technical Group

Ritesh Modi
Architect, Senior Evangelist, Cloud Architect

Crystal Wenrick
Director Communications Mindcracker

Allen O’Neill
Microsoft MVP, Consulting Engineer/Architect

Praveen Kumar
CEO MCN Solutions

Chris Love
Founder Love2Dev, Microsoft MVP, Author

Sanjay Vyas
Microsoft Regional Director, Microsoft MVP, Founder & CEO SkillLabs Technologies

Veena Sarda
Deep Learning Consultant, Author

Sekhar Srinivasan
C# Corner MVP, Microsoft Certified Trainer, Pluralsight Author

Lalit Bansal
Founder & CEO - EIY SYS

Navdeep Garg
CEO Revinfotech

Prakash Tripathi
Tech Manager/Leader, Microsoft MVP, Blogger

Bhavna Jain
Breakthrough Consultant

Naveen Sharma
Enterprise Architect, Leadership Coach, Author

Vidya Vrat Agarwal
Principal Architect, Microsoft MVP, Author

Sheetal Agarwal
Founder Clownselors, Medical Clown, Trainer

Abhishek Kant
Founder GTM Catalyst

Vishnu Saran
Founder & CEO VoiceQube

Sandeep Soni
Founder & CEO Deccansoft, Microsoft Certified Trainer

Parveen Malik
AVP InfoSec & Vulnerability Management, Information Security Expert

Nitin Pandit
Microsoft MVP, Developer Evangelist, Author

Niloshima Srivastava
C# Corner MVP, Tech Architect, Trainer, Blogger

Bala Chirtsabesan
Senior Software Engineer at Microsoft, Author

Manoj Mittal
Sr. Technical Architect, C# Corner MVP, Author

Chandni Di
Co-Founder Voice of Slum

Vithal Wadje
Technical Lead, Microsoft MVP, Author

Shivam Ahuja
Founder SkillCircle, Business Mentor

Chervine Bhiwoo
Solution Architect, Microsoft MVP, Author

Saurabh Jain
Vice President Paytm, Founder Fun2Do Labs, Author

Vinay Solanki
Head IoT at Lenovo, Founder IoT-NCR

Anshu kumari
Founder Blockchainkids, Inventor, Trainer

Amit Singal
CEO Startup Buddy

Dev Pratap
Co-Founder & CEO Voice of Slum

Amey Vartak
Technology Consultant, Full Stack Developer, C# Corner MVP, Author

Viswanatha Swamy
Principal Software Engineer, C# Corner MVP, Author

Sanket Verma
Research Engineer @ Ballistics (Forensics) and Chair, PyData Delhi

Sourabh Somani
Lead Developer, Microsoft MVP, Author

Abhishek Mishra
Software Architect, C# Corner MVP, Author

Siddharth Vaghasia
Technical Consultant, C# Corner MVP, Blogger

Bassam Alugili
Senior Software Specialist, Database Expert

S Ravi Kumar
Solution Architect, C# Corner MVP, Author

Sundaram Subramanian
Full Stack Developer, C# Corner MVP, Speaker

Deepesh Somani
Solution Architect, Microsoft MVP, Author

Debasis Saha
Technical Project Manager, C# Corner MVP, Blogger, Author

Vipul Jain
Software Architect, C# Corner MVP, Author

Akshay Patel
Technical Architect, Microsoft Certified Trainer, C# Corner MVP, Author

Stephen Simon
RPA Developer, Evangelist, Author

Vivek Sharma
Founder Kingster636, AR/VR Specialist

Jeetendra Gund
Technical Lead, C# Corner MVP, Author

Sujal Beniwal
AI Enthusiast, Student

M Viknaraj
Microsoft MVP, Azure Architect, Author

Prasham Sabadra
Software Architect, C# Corner MVP, Trainer, Author

Aakash Maurya
Senior Developer, C# Corner MVP, Speaker

Ankit Sharma
Senior Software Engineer, C# Corner MVP, Author

Mangesh Gaherwar
Team Lead, C# Corner MVP, Author

Viral Jain
Technical Consultant, C# Corner MVP, Author

Bhasker Das
Solution Architect, Evangelist

Manish Dwivedi
Associate Project Manager

Ck Nitin
Programmer, Author

Rohit Gupta
Technical Trainer, Author

Manish Tewatia
Full-stack Marketer, UX Designer

Bhavya Gaur
Technical Illustrator

Rohit Tomar
SEO/SMO Expert

Web Track

Cloud & Data Track

Dev Track

8am-9am

Registration & Breakfast

9am-10am

Future of Desktop Apps with JS (ElectronJs)

Nitin Pandit

Building Serverless Microservices Using Microsoft Azure

Vithal Wadje

Innovating RPA: A Robot for Every Person

Stephen Simon

10am-11am

Managing Cloud Storage Accounts using Logic Apps

Viknaraj Manogararajah

Data visualization using Python

Sekhar Srinivasan

Going Cross platform with AR Foundation

Vivek Sharma

11am-12pm

Keynote

12pm-1pm

Managing your Azure dependencies in ASP.NET Core apps using VS

Bala Chirtsabesan

Securing Applications on Intelligent Azure

Abhishek Mishra

Getting started with Blazor the Framework of Future

S Ravi Kumar

1pm-2pm

Lunch

2pm-2:45pm

Build Progressive Web Apps using Angular 9

Debasis Saha

Build and deploy to any platform using Azure DevOps

Chervine Bhiwoo

Deep Dive in Azure Service Bus

Akshay Patel

2:45pm-3:45pm

Build a Native Mobile Application using React Native and JavaScript

Joseph Guadagno

Making sense of Web Job, Web Job SDK and Functions in Azure

Prakash Tripathi

CloudFront Distribution in AWS

Viral Jain

3:45pm-4pm

Tea Break

4pm-4:30pm

Introduction to PowerBI

Aakash Maurya

Build Advanced SPFx solutions with React and Graph API

Siddharth Vaghasia

Build Business Intelligence Analyst (BIA) Skills

Sundaram Subramanian

4:30pm-5pm

Deep dive of Power Platform – AI BUILDER

Prasham Sabadra

Panel 1

What's new in SharePoint development

Vipul Jain

5pm-5:30pm

Build a SSO (Single Sign On) based Native JavaScript application with Microsoft Identity within 10 minutes

Manoj Mittal

Panel 2

Applications and working of AI

Veena Sarda

5:30pm-6pm

Deploying serverless API's with .Net core 3.0 on AWS & Azure

Amey Vartak

Panel 3

Blockchain with .NET Core (Ark)

Anshu Kumari

6pm-6:30pm

Closing Note & Prize Distribution

Dev Track

Cloud Track

Architecture Track

Emerging Tech Track

8am-9am

Registration & Breakfast

9am-10am

Creating Full-Stack Web Apps Using Server-Side Blazor

Ankit Sharma

Real time face recognition with MS Cognitive Services

Niloshima Srivastava

Building Scalable APIs with GraphQL

Jeetendra Gund

Future of development with AI and Blockchain

Navdeep Garg

10am-11am

Debugging Tips and Tricks with Visual Studio 2019

Joseph Guadagno

Azure Containers

Abhishek Kant

Enterprise Architecture

Naveen Sharma

Bot Framework - learn it fast and look like a boss!

Allen O’Neill

11am-12:30pm

Keynote

12:30pm-1:30pm

.Net Core & C# 8 Performance

David McCarter

Working with Azure kubernetes services

Ritesh Modi

Becoming an Architect

Vidyavrat Agarwal

Why Techies Need to Learn Product Management

Saurabh Jain

1:30pm-2:30pm

Lunch

2:30pm-3:30pm

Build a rules engine in .Net Core

Sanjay Vyas

Building CI and CD Pipeline using Azure DevOps

Sandeep Soni

Entity Framework Core - Tips and Tricks, Performance Optimization, and Tuning

Bassam Alugili

Hacking your way into Data Science

Sanket Verma

3:30-4:15pm

Speed up your .Net Core Website

Sourabh Somani

Azure

Magnus Mårtensson

Demystifying Open Distro for Elasticsearch

Suman Debnath

Future of Data

Shivam Ahuja

4:15pm-4:30pm

Tea Break

4:30pm-5:15pm

gRPC with C# and .Net Core

Mangesh Gaherwar

Panel 1

Essentials of Cloud security

Parveen Malik

Power platform and Dynamics 365

Deepesh Somani

5:15pm-6pm

Microservices - the gRPC Way

Viswanatha Swamy

Panel 2

Reserved

Reserved

6pm-6:30pm

Closing Note & Prize Distribution

Building Runtime LINQ Filters for Complex .NET Applications

Complex filtering is where a conventional where clause starts to creak. An order screen might combine customer region, status, product category, an AUD amount range and a date window, with each rule optional and each group governed by all or any semantics. A dynamic LINQ query builder turns those changing requirements into runtime-generated predicates while keeping the application’s data access logic in C#.

That flexibility must fit the way Australian software teams build and operate products. Many teams serve customers from Sydney and Melbourne while development and support are distributed through Brisbane and Perth. For workloads using Azure Australia East or Australia Southeast, query design still affects round-trip time and database load. Where the Privacy Act 1988 and Australian Privacy Principles apply, filter metadata and diagnostic logs also need careful handling.

The approach presented at the C# Corner Annual Conference 2020 centres on expression trees, IQueryable, and provider-aware translation. It covers how to model filter fields, compose nested conditions, reject unsafe operations and verify the SQL that ultimately reaches the database. The goal is a flexible filter contract that remains predictable as APIs, datasets and users evolve.

Runtime filters are a product feature, not a SQL string

A search page and an internal reporting tool rarely need the same fixed query, yet both benefit from shared filter concepts. The useful abstraction is a small filter language: a field identifier, an operator, a typed value and optional grouping. ASP.NET Core can deserialize that language into a request object, after which a builder validates it and creates an expression tree over the queryable entity.

Hard-coding one lambda per combination creates combinatorial growth, while concatenating SQL from request values creates injection and authorisation risks. Parsing arbitrary expression strings offers more freedom, but mistakes become difficult to diagnose and some valid-looking expressions translate poorly. A structured builder occupies the middle ground: data callers select known fields and operators, while the C# implementation controls how those choices become predicates.

Modelling fields with expression trees

An Expression<Func<T, bool>> describes a predicate as a tree rather than executable code supplied as text. Leaf nodes identify properties, constants hold filter values, and nodes such as Equal, GreaterThan and AndAlso define their relationships. When the source is an IQueryable<T> over Entity Framework Core, that tree can be translated into SQL instead of being run as an in-memory delegate.

Start with a field registry that maps public names to strongly typed accessors. It can record the property type, supported operators, whether null is meaningful and any database-specific constraints. The same registry then supports request validation, documentation and UI filter controls, so the accepted field list is defined once rather than repeated in controllers, queries and tests.

var parameter = Expression.Parameter(typeof(Order), "order");
var member = Expression.Property(parameter, nameof(Order.Status));
var value = Expression.Constant(OrderStatus.Pending);
var body = Expression.Equal(member, value);

var predicate =
    Expression.Lambda<Func<Order, bool>>(body, parameter);

This deliberately small example still contains the important boundary: the caller chooses a registered status, while the builder chooses the property and comparison node. For values of different types, use Expression.Convert only when the conversion is registered and suitable for the domain; converting arbitrary strings can turn malformed input into surprising predicates.

Composing predicates for nested filter groups

Most real filter UIs need boolean composition rather than a long chain of conditions. A PredicateBuilder-style helper can start with a predicate of true for and groups or false for or groups, then combine expressions with Expression.AndAlso or Expression.OrElse. Nested groups require explicit tree construction because ordinary lambda chaining loses the structure users selected in the interface.

Keep the grouping intact when producing SQL. Expanding A AND (B OR C) into a distributive form can increase expression size quickly and makes accidental precedence bugs more likely. A canonical filter model should also preserve whether an empty any group matches everything and whether an empty all group matches nothing.

Values belong in expression constants or captured variables, never inside a property path or method name. This lets Entity Framework Core parameterise literal values during SQL generation and keeps user text out of the query’s structural syntax. Null comparison also needs deliberate handling because == null, != null and methods such as Equals can have different translation and null semantics.

Translating rules into provider-friendly queries

A dynamic expression is only useful if the provider can translate it. Entity Framework Core handles common comparisons, null checks, boolean combinations and selected string operations, but provider support varies. An in-memory Enumerable.Contains may become client evaluation and transfer rows before filtering. Inspecting generated SQL through query logging or ToQueryString() exposes that difference before the code reaches production.

Design expressions around provider capabilities and give dates and amounts precise boundaries. A common pattern is a half-open range, created >= start AND created < end, which avoids missing records at the final millisecond. Use AsNoTracking for read-only paths, project only required columns after applying filters and run asynchronous materialisation and count operations. A stable query shape also makes query plans easier to compare across releases.

Approach Strongest feature Main trade-off Best fit
Hand-built expression trees Full control over nodes and metadata More builder code and tests A public, long-lived filter API
Dynamic LINQ strings Concise runtime syntax Parsing risks and weaker discoverability Trusted administration tools
PredicateBuilder composition Clear reusable AND/OR rules Limited support for deep grouping Tenant and business-rule predicates
Provider-specific extensions Familiar database semantics Less portability between providers Reporting features near a stable stack

The practical choice depends on who controls the input. Public APIs benefit from an explicit field registry; internal tools can use a constrained dynamic LINQ parser; fixed tenant predicates can be composed separately with PredicateBuilder. A hybrid architecture often keeps trusted business rules independent from the customer-controlled filter tree.

Guarding untrusted filter input

Treat every filter document as untrusted input. Resolve field names through an allow-list, restrict each field to supported operators and convert values to the property’s exact type before building the expression. Australian interfaces often display dates as dd/MM/yyyy and prices as AUD with GST treatment, but APIs should accept an unambiguous format and use invariant parsing rather than current culture. Decimals should remain decimals throughout.

Apply hard limits to filter count, nesting depth, page size and execution time. Combine a server-controlled tenant predicate with the user expression using an explicit top-level AND so an OR group cannot escape its authorised scope. Keep values parameterised, whitelist sortable fields and reject attempts to reference navigations, functions or unknown members. For large data sets, cancellation and provider-side execution are safer than materialising a query in memory.

Testing filter behaviour and query plans

Unit tests should inspect the expression tree and filter model rather than relying only on returned rows. Cover null values, enums, empty groups, mixed and and or logic, boundary dates and the maximum permitted complexity. Integration tests should run against the same database provider used in production, because SQLite or an in-memory store can accept expressions that a SQL Server or Azure SQL deployment will translate differently.

Operational evidence should show which filter shape was requested, how long it took and how many rows it returned, while sensitive values remain out of logs. A correlation ID, normalised field and operator names, elapsed time and query-plan information are usually more useful than raw JSON. CI performance tests can compare representative datasets before a release, and Azure Monitor or OpenTelemetry can surface regressions after deployment. For Australian organisations subject to the Privacy Act and Australian Privacy Principles, logging policy should cover filter values as carefully as any other customer data.

Optimising latency, memory and database load

Database indexes should reflect common filter combinations, not every field a product exposes. Composite indexes follow realistic predicates and selective leading columns, while projection and pagination reduce the amount of data crossing the network. Avoid unbounded ToList calls; use server-side paging and asynchronous APIs. Compiled query paths can help a stable hot query, while a dynamic builder is better suited to genuinely changing filter combinations.

Cache field metadata and validated expression plans where appropriate, but do not share cached results across tenants or permission boundaries. Measure plan changes, row counts and parameter patterns after each release, then adjust indexes or query structure based on evidence. A disciplined expression-based filter builder gives .NET teams a stable boundary between flexible user input and deliberate data access. It supports the adaptability required by Australian products while keeping query shape, tenant boundaries and execution cost visible and testable.

The Leela Ambience Convention Hotel

1, CBD, Maharaj Surajmal Road, Near Yamuna Sports Complex, Delhi, 110032

KNOW MORE

GENERAL QUERIES


Manish Tewatia

+91-9718-431-042

TICKET QUERIES


Atul Gupta

+91-9910-125-804