title: Foreign keys in entity framework 4.1
body: <p>I am working on Entity Framework 4.1 and using data annotations for foreign keys. I want to know how can we define one to many relationship between product and categories. I want to map category. categoryId with product.cid</p>
  
  <pre><code>public class Category
  {
      public string CategoryId { get; set; }
      public string Name { get; set; }
  
      public virtual ICollection&lt;Product&gt; Products { get; set; }
  }
  
  public class Product
  {
      public int ProductId { get; set; }
      public string Name { get; set; }
      public string CId { get; set; }
  
      public virtual Category Category { get; set; }
  } 
  </code></pre>
  
  <p>Please suggest</p>