[英]ASP .NET Core MVC - How to initialize an object property in a model class which is a result of many-to-many relationship?
[英]ASP .NET Core MVC Entity Framework - How to get access to a table which is result of many-to-many relationship?
只需在您的數據庫上下文中創建它
public class ApplicationUserTrip
{
public string ApplicationUserId {get; set;}
public int TripId {get; set;}
public virtual ApplicationUser ApplicationUser {get;set;]
public virtual Trip Trip {get; set;}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.