CslaDataProvider userState?

CslaDataProvider userState?

Old forum URL: forums.lhotka.net/forums/t/9977.aspx


Charleh posted on Tuesday, January 25, 2011

Hi All,

There doesn't appear to be a userState args available on the CslaDataProvider.Save method, though the callback signature contains SavedEventArgs which have this property - am I missing something obvious?

I'd like to be able to feed state info back to the callback

Thanks,

Charles

RockfordLhotka replied on Tuesday, January 25, 2011

CslaDataProvider is modeled on the Microsoft data provider concept - which is now effectively obsolete. The design of CslaDataProvider exists to mirror Microsoft's data provider designs in WPF, and they didn't do userstate.

Generally I recommend switching to an MVVM model using ViewModel or ViewModelBase, as these are more forward-looking techniques.

Copyright (c) Marimer LLC