Closed HelloValue closed 3 years ago
++,This is the json data I want:
[{
"OrderId":"1",
"EncounterType":"S",
"OrderCreateTime":"20210401",
"TestItem":[
{"OrderId":"1","ItemCode":"K"},{"OrderId":2,"ItemCode":"NA"}
]
},
{
"OrderId":"2",
"EncounterType":"R",
"OrderCreateTime":"20210401",
"TestItem":[
{"OrderId":"2","ItemCode":"K1"},{"OrderId":2,"ItemCode":"NA2"}
]
}]
I two am wanting this u think something so simple would be answered quick but been still waiting on an answer @HelloValue
Please read the examples here for Blog
(parent) and Post
(child) relationships:
https://github.com/bchavez/Bogus/blob/9fc7614274f7f80b889151aa31a5fd2f2d0e610d/Examples/EFCoreSeedDb/Program.cs#L64-L153
@davidbuckleyni @bchavez Thanks.
Sorry, it's my problem, I didn't find the post.
@HelloValue , no worries. Let me know if you have any other questions.
Feel free to post in https://github.com/bchavez/Bogus/discussions
Version Information
What locale are you using with Bogus?
.NET 5
What's the problem?
I have two class:
i want generate 10 order, and OrderId is different. then it contains any TestItem and OrderId should be Order's OrderId.
Thanks.
Do you have sample code to show what you're trying to do?
(Please be complete. Provide all code necessary to run your example in LINQPad.) (The more complete code examples are, the more accurate answers will be.) (https://www.linqpad.net)