Skip to content

.Include does work with the Get<TEntity> #308

Open
@brezaie

Description

@brezaie

Hi pals,
When doing the following query, the NameEntityType is still null:

public class NameEntity {
    public int Id { get; set; }
    public int NameEntityTypeId { get; set; }
    public virtual NameEntityType NameEntityType { get; set; }
}

public class NameEntityType {
    public int Id { get; set; }
    public virtual System.Collections.Generic.ICollection<NameEntity> NameEntities { get; set; }
}


var res = queryFactory.Query("NameEntity")
                .Include("NameEntityType", queryFactory.Query("NameEntityType"), "NameEntityTypeId")
		.Get<NameEntity>();

Could you please let me know about the way to solve the issue?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions