Forum General


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Unable to update my datas using MobileService


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 !!


Sign In or Register to comment.