Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Owned types on an owner sub-type are not loaded #16360

Closed
ajcvickers opened this issue Jun 30, 2019 · 2 comments
Closed

Owned types on an owner sub-type are not loaded #16360

ajcvickers opened this issue Jun 30, 2019 · 2 comments

Comments

@ajcvickers
Copy link
Member

See Database_concurrency_token_value_is_updated_for_all_sharing_entities

The model here has:

public class Sponsor
{
        public int Id { get; set; }
        public string Name { get; set; }
}

public class TitleSponsor : Sponsor
{
    public SponsorDetails Details { get; set; }
}

public class SponsorDetails
{
    public int Days { get; set; }
    public decimal Space { get; set; }
}

Both these queries leave Details null:

var sponsor = context.Set<TitleSponsor>().Single();
var sponsor = context.Set<TitleSponsor>().Include(e => e.Details).Single();

Tested with SQL Server

@smitpatel
Copy link
Contributor

Duplicate of #15285?

@ajcvickers
Copy link
Member Author

@smitpatel Probably--just wasn't sure if this was a special case.

ajcvickers added a commit that referenced this issue Jun 30, 2019
Part of #15318 (Still open for in-memory tests)

See also #16359 and #16360
ajcvickers added a commit that referenced this issue Jun 30, 2019
Part of #15318 (Still open for in-memory tests)

See also #16359 and #16360
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants