Code duplication reduction exercise #395
-
I'm looking to implement a better way to define offline tables on the client. In my current project I have around 50 tables and implementing these would mean I need to define each one
then I need to get a reference to each one using
it just seems like there could be an easier way. So I'm looking for ideas... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Nope - no easier way. You need to define the tables prior to usage, then call InitializeOfflineStoreAsync, then get each one. I only get them when I need to use them - even at the method level - the sync context is constant, |
Beta Was this translation helpful? Give feedback.
Nope - no easier way. You need to define the tables prior to usage, then call InitializeOfflineStoreAsync, then get each one. I only get them when I need to use them - even at the method level - the sync context is constant,