Entity Framework Code First Self Referencing Parent Child with Payload
问题 I'm attempting to set this up using code first in entity framework and am running into difficulty. To describe what i'm trying to accomplish: Have an entity of Product. This product optionally may have one or more related "child" products. A product can be the child to one or more parent products. when I go to generate a controller tied to the model class "Product", i'm getting an error: (updated, more specific, matches code below) There was an error running the selected code generator: