1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| [Table(Name="")]
[DataContract()]
public partial class Person : INotifyPropertyChanging, INotifyPropertyChanged
{
[Column(Storage="_Content", CanBeNull=false)]
[DataMember(Order=1)]
public string Content
[Column(Storage="_AddressId", CanBeNull=false)]
[DataMember(Order=2)]
public string AddressId
[Column(Storage="_Id", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=3)]
public string Id
[Association(Name="Address_Person", Storage="_Address", ThisKey="AddressId", IsForeignKey=true)]
public Address Address
[Table(Name="")]
[DataContract()]
public partial class Address : INotifyPropertyChanging, INotifyPropertyChanged
{
[Column(Storage="_Id", CanBeNull=false, IsPrimaryKey=true)]
[DataMember(Order=1)]
public string Id
[Association(Name="Address_Person", Storage="_Persons", OtherKey="AddressId")]
[DataMember(Order=2, EmitDefaultValue=false)]
public EntitySet<Person> Persons |
Partager