-
Notifications
You must be signed in to change notification settings - Fork 14
Relation Validation
Jeff Greene edited this page Mar 24, 2020
·
1 revision
WIP
Custom Validation Codegen uses this validation hook to perform its generated validations. in order to combine custom validation with codegenerated validation, you can instead implemented the following partial method on a data object.
private partial method ValidateCustom, void
required in vType, ValidationType
required in sp, @IServiceProvider
endmethod
put, patch, post, delete applications codegen concepts
- required - valid for all data types, applied when a repository field has "required" checked
- length - alpha fields have a max length
- number range - valid for numeric data types, applied when a repository field has a value for "range minimum" or "range maximum"
- non negative - valid for numeric data types, applied when a repository field is not marked as "negative allowed"
- requires relation match - this type of validation represents things like an order must always have a customer, or an order must have order items. error messages examples of significant customization
-
Tutorial 2: Building a Service from Scratch
- Creating a Basic Solution
- Enabling OData Support
- Configuring Self Hosting
- Entity Collection Endpoints
- API Documentation
- Single Entity Endpoints
- OData Query Support
- Alternate Key Endpoints
- Expanding Relations
- Postman Tests
- Supporting CRUD Operations
- Adding a Primary Key Factory
- Adding Create Endpoints
- Adding Upsert Endpoints
- Adding Patch Endpoints
- Adding Delete Endpoints
-
Harmony Core Code Generator
-
OData Aware Tools
-
Advanced Topics
- CLI Tool Customization
- Adapters
- API Versioning
- Authentication
- Authorization
- Collection Counts
- Customization File
- Custom Field Types
- Custom File Specs
- Custom Properties
- Customizing Generated Code
- Deploying to Linux
- Dynamic Call Protocol
- Environment Variables
- Field Security
- File I/O
- Improving AppSettings Processing
- Logging
- Optimistic Concurrency
- Multi-Tenancy
- Publishing in IIS
- Repeatable Unit Tests
- Stored Procedure Routing
- Suppressing OData Metadata
- Traditional Bridge
- Unit Testing
- EF Core Optimization
- Updating a Harmony Core Solution
- Updating to 3.1.90
- Creating a new Release
-
Background Information