EF Classic - LINQ Dynamic - Deferred Methods - Where

CSharp · Console

/Program.cs

// Entity Framework Classic
// Doc: https://entityframework-classic.net/linq-dynamic

// @nuget: Z.EntityFramework.Classic
// @nuget: Newtonsoft.Json

using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;  
using Newtonsoft.Json;
using Z.Expressions;

public class Program
{
	public static void Main()
	{
		List<int> ids = new List<int>{1, 2, 3, 4, 5, 6};
		
		var c = ids as IEnumerable<object>;
		
		if(c == null)
		{
		    Console.WriteLine("C is NULL!");
		} else {
			Console.WriteLine("C count" + c.Count());
		}
	}
}
;