using System;
using System.Linq;
using System.Collections.Generic;
using EntityFrameworkCore.Projectables;
using Foo;

namespace EntityFrameworkCore.Projectables.Generated
#nullable disable
{
    public static class Foo_EntityExtensions_GetFirstRelatedIgnoreNulls
    {
        public static System.Linq.Expressions.Expression<System.Func<Entity, Entity>> Expression()
        {
            return (Entity entity) => 
                entity != null ? (entity.RelatedEntities != null ? (entity.RelatedEntities[0]) : null) : null;
        }
    }
}