-
Notifications
You must be signed in to change notification settings - Fork 132
Bug: Table Attribute Potential Bug #464
Copy link
Copy link
Closed
Labels
deployedFeature or bug is deployed at the current releaseFeature or bug is deployed at the current releasefixedThe bug, issue, incident has been fixed.The bug, issue, incident has been fixed.known-bugA known-bug that has been a part of the release.A known-bug that has been a part of the release.todoThings to be done in the futureThings to be done in the future
Metadata
Metadata
Assignees
Labels
deployedFeature or bug is deployed at the current releaseFeature or bug is deployed at the current releasefixedThe bug, issue, incident has been fixed.The bug, issue, incident has been fixed.known-bugA known-bug that has been a part of the release.A known-bug that has been a part of the release.todoThings to be done in the futureThings to be done in the future
This issue needs a validation from the community - if this is really a big case or not. The priority will vary on the community request.
The
Tableattribute ofSystem.ComponentModel.DataAnnotations.Schemais expecting theTable("TableName"), but there is a possibility the theSchemaproperty may had been set explicitly. In RepoDb, this attribute is seems to be used asTable("[Schema].[TableName]")and defaultly ignoring theSchemaproperty, like the existingMap("[Schema].[TableName]").Here is the link to the code that could have the potential bug.
I would suggest to write it this way.
With a helper method like below.
Important Note: We need to bring the
IDbSettingobject and use theClosingQuoteandOpeningQuoteproperty to quote the values.Acceptance Criteria: Make sure that all the existing Unit Tests and Integration Tests of all Solutions are passing (i.e.: RepoDb.Core, RepoDb.SqlLite, RepoDb.SqlServer, RepoDb.PostgreSql, RepoDb.MySql, RepoDb.MySqlConnector and RepoDb.SqlServer.BulkOperations).