Last post Jul 04, 2018 10:42 AM by aminsoraya
Jul 04, 2018 04:26 AM|aminsoraya|LINK
in my scenario i have been used phoneNumber instead of email and it not required at all. how can i remove it
i used a [NotMapped] or ignore on OnModelCreating but after add-migrations command bellw error was happend:
The property 'Email' is not a declared property on type 'ApplicationUser'. Verify that the property has not been explicitly excluded from the model by using the Ignore method or NotMappedAttribute data annotation. Make sure that it is a valid primitive property.
Jul 04, 2018 10:42 AM|aminsoraya|LINK
according to my research the email field is inevitable . and you can not change or removed it but you can fill it with static default value from app side like:
const string Email="firstname.lastname@example.org";