Today I played a little bit with LightSwitch in VisualStudio 2012. I've following problem:
I have a database created by EntityFramework (code first) with GUIDs as the primary key on every table.
I used this database as the data source for my LightSwitch project.
Now on creating a new item with LightSwitch, of course I want to hide the primary key from the user, as it is generated by the database. Unfortunately the gui keeps validating the field, even if I remove it from the screen. I can't save a new item, because the validation wants me to enter a value for the primary key field.
I think I'm not using a totally uncommon setup, so how to solve this simple problem?
I've already tried to pre-populate the guid in the created event on the server side, but even if I include the field on the screen, it is still empty...