Skip to content

Support decimal parameters in sql structures#59

Open
artdedeco wants to merge 2 commits intomasterfrom
feature/sql-support-for-decimal-parameters
Open

Support decimal parameters in sql structures#59
artdedeco wants to merge 2 commits intomasterfrom
feature/sql-support-for-decimal-parameters

Conversation

@artdedeco
Copy link
Copy Markdown
Contributor

@artdedeco artdedeco commented Mar 24, 2022

I was running a test the other day using the existing SqlServerGuidItemItemSetMapFacts code and noticed that the test would break after calling MapFacts<Guid, Item>.CreateValue(Guid) in a loop. The issue is that a property of type decimal on the created Item would start to have values too big for its corresponding decimal SQL column.

As I tried to customize the precision and scale of the decimal column, I noticed Elephant currently supports only customizing the length of nvarchar and varbinary types.

Thus, I'm adding support for customizing the precision and scale of decimal types and I'm also increasing the default precision to 15 (from 9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant