Hi,ChrisShoeMaker
I have seen a few different ways, but none from Microsoft.
Both Asp.net core and EF Core are from Microsoft, what do you mean about 'from Microsoft'?
Let's say we wanted to have those Detail Forms in tabs on a web page below the Person Details.
To your needs , you can use partial view or ViewComponent , then you can reuse them wherever you need them, like
@await Component.InvokeAsync("ViewComponent" })
And a ViewModel can include multiple models, so you just need to call a viewmodel and then use the models in it, like:
public class Depot
{
public int DepotNo { get; set; }
}
public class Depot2
{
public int DepotNo2 { get; set; }
}
public class DepotViewModel //ViewModel
{
public Depot Depot { get; set; }
public Depot2 Depot2 { get; set; }
}
Best Regards,
Jerry Cai
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.