using System.Collections.Generic;
using System.Data.Entity;
using System.Linq.Dynamic.Core;
public static void Main()
var srcType = typeof(Customer);
var lambda2 = DynamicExpressionParser.ParseLambda(ParsingConfig.DefaultEFCore21, srcType, srcType, "new (new (3 as Id) as CurrentDepartment)");
public int Id { get; set; }
public Department CurrentDepartment { get; set; }
public int Id { get; set; }