Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Address Table
- ---------------------
- Id Street City
- 1 Street A City
- container = new Container {
- Name = "Box",
- Size = 10
- }
- person = new Persion {
- Name = "A",
- AddressId = 2
- Container = container
- }
- await _context.Person.AddAsync(person);
- await _context.SaveChangesAsync(true);
- return container;
Add Comment
Please, Sign In to add comment