email column not removed from user table RRS feed

  • Question

  • User-1045082127 posted

    hi guy

    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.

    Wednesday, July 4, 2018 4:26 AM


  • User-1045082127 posted

    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="a@a.com";

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 4, 2018 10:42 AM