I asked this question on Xamarin Forms and didn't get a reply which is why I'm posting this here as well. Also I've read the other related questions and I think they don't have the answer which I'm looking for. So I was learning Cross Platform development with Xamarin and unfortunately I can't wrap my head around one thing. Let me explain it in further details below.
I am making a Weather Forecast app which would be running on Android and iOS. Now I know that both platforms natively support SQLite Databases but to take advantage of Xamarin and C# instead of using their native SQLite functionality, I'm going to be using the sqlite-net ORM package. Now, the point where I'm having a conflict with myself is that, Android has SQLiteOpenHelper and ContentProviders. I'm not sure but iOS might have something similar. Now what is the best way to use sqlite-net ORM with these native functionalities so that I can share the basic SQLite code (such as CRUD, etc.) as well as, at the same time make use of essential native functionality such as Android's Content Providers.
On the contrary, If I have to write separate code for managing and querying databases on Android and iOS than are API calls the only thing where I am sharing code? I hope I made myself clear :-)
Aucun commentaire:
Enregistrer un commentaire