** THIS SITE IS AN ARCHIVE ** - New Content is at:
LightSwitch provides for creating Data Sources in several ways. In the case of an existing database you would typically either specify the database itself or a WCF RIA Service.
But sometimes neither is feasible. I was confronted with a database with no primary keys and incredibly wide tables – so wide that I got error messages about it. And you can’t really do much with a database that has no primary keys. Also modifying the schema was not an option.
This actually turned out to be quite liberating. The reason we wanted to access the database outside of the legacy application it was designed for was to
By extracting the data into another database we could