Skip to content

Support decimal parameters in sql structures #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andre-ss6
Copy link
Contributor

@andre-ss6 andre-ss6 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