0

데이터베이스 "Styles"및 "BannedStyles"에 두 개의 테이블이 있습니다. ItemNo를 통해 참조가 있습니다. 이제 상점마다 스타일을 금지 할 수 있습니다. 따라서 스타일 x가 상점 Y에서 금지 된 경우 상점 Z 또는 부역에서 금지되지 않았을 가능성이 매우 높습니다. 이것을 단일 엔티티에 매핑하는 가장 좋은 방법은 무엇입니까? 이 항목을 단일 항목에 매핑해야합니까?Fluent-map this (유창한 nhibernate 사용)?

내 스타일 엔티티는 다음과 같습니다

public class Style 
{ 
     public virtual int ItemNo { get; set;} 
     public virtual string SKU { get; set; } 
     public virtual string StyleName { get; set; } 
     public virtual string Description { get; set; } 
     public virtual Store Store { get; set; } 
     public virtual bool IsEntireStyleBanned { get; set; } 
} 

답변

관련 문제