Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Include doesn't get the related entity

$
0
0

It's the first time my .Include() doesn't return the entity. I don't know what is missing.

Billings class

public Order Order { get; set; }public List<BillingItem>? BillingItems { get; set; }

ApplicationDbContext:

modelBuilder.Entity<Billing>()            .HasOne(e => e.Order)            .WithOne(e => e.Billing)            .HasForeignKey<Billing>(e => e.OrderID)            .OnDelete(DeleteBehavior.Restrict);

Execution watch variable


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>