سؤال

I had a functioning Lightswitch application built with VS2012RTM. It was interacting with a RIA service backend. Recently, the RIA Service assembly was 'upgraded' to use DbContext instead of ObjectContext, breaking the lightswitch application.

So, I created a new datasource in Lightswitch to source from the SQL Server, and switched all of the screens over to the new datasource. Then, I did an 'upgrade project' in Visual Studio to Update 2. Now, none of my screens are editable. Nothing about the internal permissions changed, only the datasource and login (which has all the rights it needs) and the version of Lightswitch.

Any clues?

هل كانت مفيدة؟

المحلول 2

Apparently, new screens must be created against the new data source. What I had attempted to do was add Data Items from the new data source to the existing screens, wire up to the new data, and then delete the original Data Items from the screen. Creating the screens from scratch was the only way I could get them editable again.

نصائح أخرى

Usually, screens that can't be edited are caused by the underlying data appearing to be read-only to LightSwitch, or the tables don't have a key property that has a unique value for each record in the table.

What happens if you create a very basic table, bound to one of the tables in the data source?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top