The current forms rely on ASP.NET WebForms to loop through the Request.Form collection to process form values. In ASP.NET Core (as well as ASP.NET MVC Framework) the preferred approach is to instead map this input to binding models.
ASP.NET Core 3.0 Support
In ASP.NET Core 3.0 this also allows easy configuration of form validation and error messaging through the use of attributes.
Approach
There is a lot of overlap between the various GoldSim forms. Given this, a layered approach to creating binding models based on reusable POCOs is preferred. This allows new forms to be easily composed, without limiting extensibility.
Models
[x] CoreContact
[x] Contact
[x] ExtendedContact
[x] ExtendedContact
[x] Profile
[x] ExtendedProfile
[x] Address
[x] ModuleSelection
Binding Models
[x] TrialFormBindingModel (ExtendedProfile)
[x] DemoFormBindingModel (ExtendedProfile)
[x] AcademicFormBindingModel (ExtendedProfile)
[x] InstructorAcademicFormBindingModel
[x] StudentAcademicFormBindingModel
[x] PurchaseBindingModel
[x] QuoteFormBindingModel
[x] PurchaseFormBindingModel
For more information, see the GoldSim.DotNetCore.Forms.DataModel.txt file.
The current forms rely on ASP.NET WebForms to loop through the
Request.Form
collection to process form values. In ASP.NET Core (as well as ASP.NET MVC Framework) the preferred approach is to instead map this input to binding models.ASP.NET Core 3.0 Support
In ASP.NET Core 3.0 this also allows easy configuration of form validation and error messaging through the use of attributes.
Approach
There is a lot of overlap between the various GoldSim forms. Given this, a layered approach to creating binding models based on reusable POCOs is preferred. This allows new forms to be easily composed, without limiting extensibility.
Models
CoreContact
Contact
ExtendedContact
ExtendedContact
Profile
ExtendedProfile
Address
ModuleSelection
Binding Models
TrialFormBindingModel
(ExtendedProfile
)DemoFormBindingModel
(ExtendedProfile
)AcademicFormBindingModel
(ExtendedProfile
)InstructorAcademicFormBindingModel
StudentAcademicFormBindingModel
PurchaseBindingModel
QuoteFormBindingModel
PurchaseFormBindingModel
For more information, see the
GoldSim.DotNetCore.Forms.DataModel.txt
file.