我想将以下JSON数据发送到服务器并在android中读取响应.以下是Json数据.
{
"class": "OrderItemListDto",
"orderItemList": [
{
"class": "OrderItemDto",
"orderId": 24,
"itemId": 1,
"quantity": 2,
"status": "NEW",
"sRequest": "none"
},
{
"class": "OrderItemDto",
"orderId": 24,
"itemId": 2,
"quantity": 2,
"status": "NEW",
"sRequest": "none"
}
]
}
Run Code Online (Sandbox Code Playgroud)
这里可能会增加数据.
我想在Xamarin(Monodroid)中创建sqlite(SQLite.NET组件)数据库的版本,以及如何在表中的任何修改和playstore中更新时处理数据库的版本.我如何获得像Android原生SQLiteOpenHelper类的OnUpgrade功能.
我在下面使用
string folder = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
var conn = new SQLiteConnection (System.IO.Path.Combine (folder, "stocks.db"));
conn.CreateTable<Stock>();
conn.CreateTable<Valuation>();
Run Code Online (Sandbox Code Playgroud)