New Table properties not reflected into ApplicationDataObjectContext - DataClientImplementation error RRS feed

  • Question

  • (VS2013 upd 4, LS VB Project)
    Just to clarify in advance, I solve this problem with good old clean/rebuild but I get this error in every recently used project, not in older projects, every time I add a new property in existing Tables:

    Class '<EntityName>' must implement 'Shadows Property <PropertyName> as <PropertyType>' for interface '<EntityName>.DetailsClass.IImplementation'

    It's the same for simple properties as for relations/navigation properties, in <EntityName> Class (in ApplicationDataObjectContext.vb file) new property definition is always missing.

    I can create new Table, build and run successfully, but if later I add a property to this new Table I get the same error.

    After clean/rebuild solution the error disappears but as I change something on Client screens I get:

    Class 'ApplicationData' must either be declared 'MustInherit' or override the following inherited 'MustOverride' member(s):
    Microsoft.LightSwitch.ClientGenerated.Implementation.DataServiceContext :
    Protected MustOverride Function CreateEntityImplementation(Of T As Microsoft.LightSwitch.IEntityObject)() As Microsoft.LightSwitch.Internal.IEntityImplementation
    Microsoft.LightSwitch.ClientGenerated.Implementation.DataServiceContext :
    Protected MustOverride Sub InitializeDataServiceContext()

    Followed by a lot of consequent errors.
    Again, a clean/rebuild and everything works.

    No project upgrade, no RIA services, no external Data Source, no recent updates to VS, no user access problems on project folder.

    Breaking server projects reference to Microsoft.Lightswitch.dll v., older working projects v.

    Is really painful always going clean/rebuild, any suggestion?


    Microsoft Visual Studio Professional 2013
    Version 12.0.31101.00 Update 4
    Microsoft .NET Framework
    Version 4.5.51650
    Installed Version: Professional

    LightSwitch for Visual Studio 2013   06177-004-0444002-02347
    Microsoft LightSwitch for Visual Studio 2013

    Visual Basic 2013   06177-004-0444002-02347
    Microsoft Visual Basic 2013


    Wednesday, September 23, 2015 6:43 PM

All replies

  • No suggestions.  I will just add that the update datasource wizard is broken even worse for RIA services.  If you change a POCO class used by a RIA service, the wizard will not pick up the changes unless you completely remove the entity, clean, rebuild all, etc. and then add it back, which consequently ruins any code or screens that may have referenced it.  Maintaining schema is something that LightSwitch should be great at, but it's not...
    • Edited by Hessc Wednesday, September 23, 2015 9:00 PM
    • Proposed as answer by Angie Xu Tuesday, October 6, 2015 8:11 AM
    Wednesday, September 23, 2015 9:00 PM
  • Thank you Hessc for your reply.

    What's strange is that problem came at the same time for different projects...I will investigate.


    Thursday, September 24, 2015 6:16 PM