Skip to content
New issue

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

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

Already on GitHub? # to your account

导入模板支持Excel内置验证 #167

Closed
xin-lai opened this issue Oct 15, 2020 · 1 comment
Closed

导入模板支持Excel内置验证 #167

xin-lai opened this issue Oct 15, 2020 · 1 comment
Labels
Milestone

Comments

@xin-lai
Copy link
Collaborator

xin-lai commented Oct 15, 2020

导入模板支持Excel内置验证。
image
image

Originally posted by @xin-lai in https://github.com/dotnetcore/Magicodes.IE/issue_comments/699623808

@hueifeng
Copy link
Member

For excel template generation, We add an IsInterValidation(bool) property to the ImporterHeaderAttribute to control the enable of built-in validation. Of course, data constraints can be controlled through data annotation.
Currently, we support MaxLengthAttributeMinLengthAttributeStringLengthAttributeRangeAttribute.

We only support DateTime and int types for data range validation.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants