Created
August 26, 2017 17:37
-
-
Save JeremyLikness/b36082f13a74a9e97fac498e8c95375e to your computer and use it in GitHub Desktop.
FoodItem class with BSON Document
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class FoodItem | |
| { | |
| [BsonId] | |
| public string FoodId { get; set; } | |
| public string FoodGroupId { get; set; } | |
| public FoodGroup Group { get; set; } | |
| public string Description { get; set; } | |
| public string ShortDescription { get; set; } | |
| public string CommonNames { get; set; } | |
| public string Inedible { get; set; } | |
| public Weight[] Weights { get; set; } | |
| public BsonDocument NutrientDoc { get; set; } | |
| [BsonIgnore] | |
| public Nutrient[] Nutrients { get; set; } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment