Repository navigation
Replies: 7 comments 5 replies
|
I am currently in busines travel, therefore I could not go low-level. But I can answer this easily. Composite keys are not supported as also registered on our limitation page. The alternative to it is documented when you do any push operations. |
|
Hi @bpaolo71, if I will ask you, how would you like to handle composite keys? If you have a proposal or idea on how to handle it without affecting and breaking the Core ORM, I guess let us go for it. Just let me know. |
|
It is about a old table that was created without the usual 'ID' primary key. But Query och QueryAsync are working fine anyway so it is only Insert/update that have the problem and I can solve with a raw query. |
|
Nice, |
|
Hi @bpaolo71 the KeyColumnReturnBehavior.None is not yet supported, but I can support it in v1.17.0 which I am targetting to release on 2nd week October. Will you be able to create an issue for such request? |
|
@mikependon it is strange that RepoDB doesn't support multiple PKey columns . . . as it's not very hard to implement in the MERGE queries. The fact that only a list of single values are returned could be addressed by providing an enum or maybe accepting a Func<> that returns a value the caller defines -- for example a concatenated string of the PKey values. Or nothing at all In case it may be helpful my library that I wrote does this and it's handled here in the MERGE query builder logic: We use RepoDB in combination with my SqlBulkHelpers library because they both have different behaviors but some of RepoDBs limitations drive us to needing to |
|
I added the #1364 as we have identified that both Firebird and Vertica is disrespecting the enumeration KeyColumnReturnBehavior. |

Uh oh!
There was an error while loading. Please reload this page.
I have a table like that:
CREATE TABLE
multicolumn_primery_key(col1varchar(10) NOT NULL DEFAULT '',col2tinyint NOT NULL,col3varchar(15) NOT NULL DEFAULT '',col4varchar(100) NOT NULL DEFAULT '',PRIMARY KEY (
col1,col2,col3)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_as_ci;
Is it possible to configure i RepoDb?
All reactions