owncloud-archive / windows-phone

ownCloud Windows Phone App
50 stars 43 forks source link

Using database instead of files #7

Closed Ahn1 closed 11 years ago

Ahn1 commented 11 years ago

Hey @framedynamic ,

i want to suggest to use a database for storing the account data. We could use the SQLCE class "CalendarDataContext". (Maybe rename it to "OwncloudDataContext").

A database should be faster and more comfortable because we don't have to serialize the complete data every time.

So we have all data at one place (except the synced files)

framedynamic commented 11 years ago

I don't think that DB-Mapping is faster than a serialization of a simple object like account data. Of course sequential loading of serialized objects would be slower but theoretically we don't have to do.

But I agree with merging the data storage as its cleaner. Will do that in next commit.

Furthermore rename the class DBEntity to Entity because there is no DB-bounding and it could be used by the model classes too?

Ahn1 commented 11 years ago

Yes, ok.

It would make sense, to rename it to "Entity"