[Table("Customers")] public class customer { [Key, Column("CustoemrID")] public int Id{get;set;} [Column("CustomerName")] public string Name{get;set;} [Column("Zip")] public int Zip{get;set;} [ForeignKey("Zip")] public ZipCode{get;set;} } [Table("ZipCodes")] public class ZipCode { [Key, Column("ZipCode")] public int ZipCode{get;set;} [Column("Name")] public string Name{get;set;} }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)