You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I try to save a bool in cosmosDB it does not save to the database. However, if I add another property with bool? then both that new property and the bool property saved. I then tried to remove the bool? property and the value no longer saved again. I also tried to change the property from bool to bool? but it did not save.
To Reproduce
Here is my class. There is a serializable on it, but that was just for troubleshooitng, it was not saving without that as well.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Budget.Web.Model
{
public class Item
{
public Item()
{
id = Guid.NewGuid().ToString();
}
public string id { get; set; }
// public Account[] accounts { get; set; }
public string userId { get; set; }
[JsonProperty("closedInPlaid")]
public bool? ClosedInPlaid { get; set; }
public string plaidId { get; set; }
public string plaidInstitutionId { get; set; }
public string plaidAccessToken { get; set; }
public DateTime? plaidLastSuccessfulTransactionsUpdate { get; set; }
public DateTime? plaidLastfailedTransactionsUpdate { get; set; }
public DateTime? lastImport { get; set; }
public DateTime? lastImportAttempt { get; set; }
public DateTime? lastFailedImport { get; set; }
public string lastFailedImportException { get; set; }
public string name { get; set; }
}
}
Expected behavior
Theh bool or bool? property called public bool? ClosedInPlaid { get; set; } should save in the database.
Actual behavior
It does not save
Environment summary
SDK Version:
OS Version (e.g. Windows, Linux, MacOSX):
MAC M1 Mini
Rider
Mac Monterey 12.6.2
C#
Microsoft.Azure.Cosmos/3.31.2
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
When I try to save a bool in cosmosDB it does not save to the database. However, if I add another property with bool? then both that new property and the bool property saved. I then tried to remove the bool? property and the value no longer saved again. I also tried to change the property from bool to bool? but it did not save.
To Reproduce
Here is my class. There is a serializable on it, but that was just for troubleshooitng, it was not saving without that as well.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Budget.Web.Model
{
public class Item
{
public Item()
{
id = Guid.NewGuid().ToString();
}
}
Expected behavior
Theh bool or bool? property called public bool? ClosedInPlaid { get; set; } should save in the database.
Actual behavior
It does not save
Environment summary
SDK Version:
OS Version (e.g. Windows, Linux, MacOSX):
MAC M1 Mini
Rider
Mac Monterey 12.6.2
C#
Microsoft.Azure.Cosmos/3.31.2
Additional context
The text was updated successfully, but these errors were encountered: