The rest of my team are working on a Lightswitch CRUD & reporting app, and I'm looking at migrating a load of legacy data into the underlying SQL Server database they're using.
Their Lightswitch app already exposes a domain model (based on Entity Framework, I believe) - so I can add a reference to LightSwitchApplication.Common to my console migration app and then reference classes like LightSwitchApplication.Customer, LightSwitchApplication.Volunteer, and so on...
What kind of setup/data context do I need to do in my console app to be able to load and save these domain objects? It's not obvious from looking at the Lightswitch code and - given we're in the middle of a 48-hour charity hack weekend - a quick answer would be really appreciated!
Thanks,
Dylan