Skip to content

Exception thrown in ZipLocation model #6

@trishae

Description

@trishae

Problem

Cannot register successfully if mailing address info is not provided. This is an issue because mailing address is not a requirement during registration. Registration is only completely successful if all inputs are provided during registration.

There are currently [Required] attributes for Address, City, State, and ZipCode in our ZipLocation model. Those attributes shouldn't be there but removing them and creating a new migration doesn't help. EF still doesn't accept empty strings and values in our design (ID doesn't update/stays at 0)

Exception Thrown

Validation error thrown in ZipLocation model.

Quick fix

Create mock data to assign to ZipLocation properties upon registration. This data are constants and can be found in ECS.Constants/Data Access/ZipLocationConstants.cs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions