1
나는 이것을 많은 주석에 유창하게 구사하는 방법을 이해하려고 노력하고있다. 난 그냥 열 순서를 나타내는 구문을 모르겠다.Fluent Api Column 순서 sytax
public class UserNotification
{
[key]
[Column(Order = 1)]
public string UserId { get; set;}
[key]
[Column(Order = 2)]
public int NotificationId {get; set;}
public ApplicationUser User{get; set;}
public Notification Notification {get; set;}
}
나는 유창 API는 다음과 같이 알고 다음과 같이
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<UserNotification>()
.HasKey(n => new {n.UserId, n.NotificationId});
// What about the Column Order?
}
고마워요! 정말 대단합니다. 나는 빨리 배우고있다. – AllocSystems