-
Notifications
You must be signed in to change notification settings - Fork 10
Form Validation
Trevor Fayas edited this page Jan 1, 2022
·
2 revisions
When validating Form Models, the default Data Annotation Attributes are available to you to leverage and are done so in the Baseline.
These attributes, however, are not Async by nature and can be limiting. The Baseline uses a package called FluentValidation that allows you to define validation rules for a model, including Async operations (with dependency injections). It is even possible to have some of these operations have a client-side ajax call (we did not set that up, however).
A good example in our repository is the BasicUser which does a database call to make sure the user doesn't already exist or the email is already in use.
You can use this tool for your models as well.
- Solution architecture
- Feature Folders
- Page Template View Component
- Interface Model Implementation Map
- Cache Dependency Building and Async
- Post Redirect Get
- Front End Asset (CSS/JS Parsing
- Navigation
- Page Builder Header/Footer
- SEO Meta Data
- Navigation Redirection
- Page Types
- Partial Widget Page / ShareableContent
- Widgets
- Account Management
- External Authentication/Two Factor Authentication
- Ecommerce Ready
- Error Pages
- Sitemap
- Robots.txt
- Form Bootstrapification
- Bundling css/javascript + Gzip
- Bootstrap and Containers