Solarion
Honorary Master
- Joined
- Nov 14, 2012
- Messages
- 28,052
- Reaction score
- 17,805
I have this small API that I've been working on for a few days. I've hit a snag with it and I have no idea how to resolve this error. It has something to do with the way I have defined my classes and with Entity Framework.
This is a simple Rental and Booking API. You add a rental for a property and then add bookings against that rental.
I am getting the following error when attempting to add a booking:
I can either share the Git repo here or PM it. I've been on this for most of the day and don't know enough about Entity Framework to resolve this. Any help would be amazing guys.
This is a simple Rental and Booking API. You add a rental for a property and then add bookings against that rental.
I am getting the following error when attempting to add a booking:
An item with the same key has already been added. Key: 1
I can either share the Git repo here or PM it. I've been on this for most of the day and don't know enough about Entity Framework to resolve this. Any help would be amazing guys.