Skip to content
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

导入模板支持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

@xin-lai xin-lai added this to the 2.5 milestone Oct 15, 2020
@hueifeng hueifeng added the area-excel excel label Oct 20, 2020
@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.

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

No branches or pull requests

2 participants