Closed vflame closed 1 year ago
Generated source:
AProject6
// <auto-generated/>
#nullable disable
namespace EntityFrameworkCore.Projectables.Generated
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
static class ReadmeSample_MyExtensions_AProject6
{
static global::System.Linq.Expressions.Expression<global::System.Func<global::ReadmeSample.Entities.User, global::System.Collections.Generic.IEnumerable<global::ReadmeSample.Entities.Order>>> Expression()
{
return (global::ReadmeSample.Entities.User user) => user != null ? (user.Orders != null ? (user.Orders.ToArray()) : (global::ReadmeSample.Entities.Order [ ])null) : (global::ReadmeSample.Entities.Order [ ])null ?? global::System.Array.Empty<global::ReadmeSample.Entities.Order>();
}
}
}
AProject9
// <auto-generated/>
#nullable disable
namespace EntityFrameworkCore.Projectables.Generated
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
static class ReadmeSample_MyExtensions_AProject9
{
static global::System.Linq.Expressions.Expression<global::System.Func<global::ReadmeSample.Entities.User, global::System.Collections.Generic.IEnumerable<global::ReadmeSample.Entities.Order>>> Expression()
{
return (global::ReadmeSample.Entities.User user) => user != null ? (user.Orders != null ? (user.Orders.ToList()) : (global::System.Collections.Generic.List<global::ReadmeSample.Entities.Order>)null) : (global::System.Collections.Generic.List<global::ReadmeSample.Entities.Order>)null ?? new List<global::ReadmeSample.Entities.Order>();
}
}
}
AProject8
// <auto-generated/>
#nullable disable
namespace EntityFrameworkCore.Projectables.Generated
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
static class ReadmeSample_MyExtensions_AProject8
{
static global::System.Linq.Expressions.Expression<global::System.Func<global::ReadmeSample.Entities.User, global::System.Collections.Generic.IEnumerable<global::ReadmeSample.Entities.Order>>> Expression()
{
return (global::ReadmeSample.Entities.User user) => user != null ? (global::System.Linq.Enumerable.ToList(user.Orders)) : (global::System.Collections.Generic.List<global::ReadmeSample.Entities.Order>)null ?? new List<global::ReadmeSample.Entities.Order>();
}
}
}
For extension methods such as ToList(), ToArray(), and for new instances of generic list/collection/etc, namespaces/using/imports are missing: