コレクションを FNHib 自動マッピングでマッピングしようとしています。私が解決したい問題は次のとおりです。
1) プロジェクト内のすべてのコレクションをプライベート フィールド経由でマップしたい。それを世界的にどう言えばいいの?
2)各エンティティを明示的にオーバーライドせずに双方向の関係を自動マップする方法はありますか?
クラス OrganizationEntity の例:
private ISet<> _collectionWarehouse;
public virtual IEnumerable<WarehouseEntity> CollectionWarehouse
{
get{return _collectionWarehouse; }
set{_collectionWarehouse = new HashedSet<WarehouseEntity>((ICollection<WarehouseEntity>)value)}
}
クラス WarehouseEntity の例:
public virtual OrganizationEntity Organization{get;set;}