1

私はこれらの2つのテーブルを持っています:

create table countries
(
int id identity primary key,
name nvarchar(20)
)

create table persons
(
int id identity primary key,
country1 int references countries(id),
country2 int references countries(id),
country3 int references countries(id)
)

これらのテーブルに正しくマップするには、クラスとマッピングをどのように作成すればよいですか? (私はEF4 CTP5 Code Firstを使用しています)

4

1 に答える 1