Guest User

Untitled

a guest
Aug 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. WCF Data Services (OData) - Expand navigation properties using foreign key
  2. public class Entitlement : IEntity
  3. {
  4. #region Implementation of IEntity
  5. public string Id { get; set; }
  6. #endregion
  7.  
  8. public string ItemId { get; set; }
  9.  
  10. [ForeignProperty]
  11. public Item Item { get; set; }
  12. }
  13.  
  14. public class Item : IEntity
  15. {
  16. #region Implementation of IEntity
  17. public string Id { get; set; }
  18. #endregion
  19.  
  20. public string ItemName { get; set; }
  21. }
Add Comment
Please, Sign In to add comment