This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Replies: 1 comment 4 replies
-
The version on the database is a byte array so that it takes advantage of concurrency checks available in entity framework core. The version in the client is an opaque string (actually, it's a base-64 encoded version of the byte array) because you transmit a byte array most efficiently when converting it to a string, but there is little reason to convert it back to a byte array on the client. Can't say when you are doing wrong specifically as you've provided no details of the exception. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
After a long time, I picked up the project to upgrade it from XamarinForms to .net Maui.
I get the above exception when it tries to push and pull sync. I compared the data in the database and the data that passed through in Json for Version column.
In the database, version = 0x000000000002D335 (byte[]) and in Json version = 'AAAAAAAC0zU=' (string).
EntityTableData has a Version byte[] property and DatasyncClientData has a version string property. This is the place that exception throws.
This is the model in the client project:
public class PrintFormat : DatasyncClientData, IEquatable
{
public string PrintFormatName { get; set; }
}
and this is the model in the serverside:
public class PrintFormat : EntityTableData
{
public string? PrintFormatName { get; set; }
}
What I do wrong or missing to do?
Thanks,
Kamal
Beta Was this translation helpful? Give feedback.
All reactions