This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Replies: 1 comment
-
This feels like a bug - let's transition it to an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've recently started porting to MAUI... oh the joys.
I've took this opportunity to refactor some code. Previously our table names matched the model names, but now my model are suffixed with Dto, so
UserDto
for example and the table name isUsers
. So with this in mind, I define all my tables using:IOfflineStoreExtensions.DefineTable<UserDto>("Users");
However I notice when calling the
GetOfflineTable
method, it prepares the SQL statement using the table nameuserdto
. I've looked at the code I can see thatDatasyncContractresolver.ResolveTableName
only gets the table name from the attribute in the model, which is great, but the question here is what is the point in defining the tables with explicit names ?What I'd like to see is the resolution of table names from here or the attributes. Correct me please if I've missed something :)
Beta Was this translation helpful? Give feedback.
All reactions