어떤 엔티티 프레임 워크의 가장 좋은 방법입니다 :CLR은 유형에 외부 키를 정의 여부를 정의
1.Define은 CLR 유형에 외래 키가
public class Book
{
public int AuthorId{get;set;}
public Author Author{get;set;}
}
외국를 정의 2.Not가 키
public class Book
{
public Author Author{get;set;}
}