Skip to content

Instantly share code, notes, and snippets.

@JeremyLikness
Created August 26, 2017 17:37
Show Gist options
  • Select an option

  • Save JeremyLikness/b36082f13a74a9e97fac498e8c95375e to your computer and use it in GitHub Desktop.

Select an option

Save JeremyLikness/b36082f13a74a9e97fac498e8c95375e to your computer and use it in GitHub Desktop.
FoodItem class with BSON Document
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