I have tables in sqlAzure DB , i have a mobile service to connect to that database. Here in my app i am creating clasess for those tables, in those some tables have reference key columns, how to represent that reference key( foreign key) when i am writing class for that table (c#).
something Like this
[JsonProperty(PropertyName = "LocationId")]
[ForeignKey("Id")]
public string LocationId { get; set; }
public virtual Location Location { get; set; }
- Edited by Narendramacha Wednesday, October 09, 2013 12:57 PM