title: Is there any way to embed a class Element into a class Element in Entity Framework?
body: <p>This is my code:</p>
  <pre><code>namespace MyProject.Models.Database
  {
      public class Recipe
      {
          public Guid Id { get; set; } = Guid.NewGuid();
          public string Name { get; set; }
          public string? Description { get; set; }
          public string? Picture { get; set; }
          public int Worktime { get; set; }
          public int? Cooktime { get; set; }
          public int Difficulty { get; set; }
          public int Portions { get; set; }
          public List&lt;Ingredient&gt; Ingredients { get; set; }
      }
      public class Ingredient
      {
          public Guid Id { get; set; } = Guid.NewGuid();
          public Guid IngredientId { get; set; }
          public int Qty { get; set; }
          public string QtyUnit { get; set; }
      }
  }
  </code></pre>
  <p>I want the class &quot;Recipe&quot; to include many elements of type &quot;Ingredient&quot;. Ive read stuff about One-to-One and Many-To-Many but i just dont get it...</p>
  <p>any Ideas?
  thx</p>