So I have a local SQLite table “breadcrumbs” being created on the Android device. How do I go about getting that table’s data to store in another external SQL Server database table?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to try something new,
you can use entity framework and reflection to achieve that.
1.Use a code generator to generate the model code and the mapping code.
2.use the method DbContext.Database.CreateDatabase() create the database structure in sql server
3.use foreach, reflection and DbContext.Set.Add(TModel) to transmit the data from sqlite to sql server.