Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Unable to update my datas using MobileService

$
0
0

Hello,

I'm developping an app using a local SQLiteStore and MobileService on Azure. All work fine except updating data in the SQL Database on Azure.

Updating data works fine if my object model use only string and bool types. If I insert an int or datetimeoffset field, it doesn't work.
To update data, I'm using the command MobileService.SyncContext.PushAsync(); Using Fiddler, I can see that the request send is OK. I don't have any error message from the backend.

Here is an example of the used model :

public class OptionsetItem
{
    public string Id { get; set; }

    [JsonProperty(PropertyName = "optionsetName")]
    public string OptionsetName { get; set; }

    [JsonProperty(PropertyName = "value")]
    public string Value { get; set; }

    [JsonProperty(PropertyName = "pos")]
    public int Pos { get; set; }
}

If I remove the int field from my model, it works fine. If I let it, data are not updated on Azure.

Does anyone has had this kind of problem ?

Thanks for your help !!

Guillaume


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>