last day (15 days later) » 

10:20 AM
2
A: How can i add custom field in user registration asp.net boilerplate

aaronFollow these steps: For .NET Core 2.0 + Angular Create a property in User. Add the property in RegisterInput. Add the form field in register.component.html. Bind the property in AccountAppService's Register method: user.MyProperty = input.MyProperty; For .NET Core 2.0 + MVC Create a prop...

 
I am using webapi and using the free license version so can't access AbpUser class
 
Sorry, I meant User.
 
thanks for the instant reply aaron, and another thing i am using angular template with ,net.core 2.0
12:25 am here thanks
Awesome! Thanks
An error occurred while calling method 'BuildWebHost' on class 'Program'. Continuing without the application service provider. Error: Invalid column name 'UserType'. when i tried to add property in User class in .core
when trying to add-migration it is showing this error
no it is not in database. when trying to add-migration it is showing this error
[DefaultValue(1)] public byte UserType { get; set; }
 
Can you try public byte UserType { get; set; } = 1;?
 
sure will try it
An error occurred while calling method 'BuildWebHost' on class 'Program'. Continuing without the application service provider. Error: Invalid column name 'UserType'.
 
10:20 AM
Can you try public virtual byte UserType { get; set; }?
 
sure will try it
same error is there An error occurred while calling method 'BuildWebHost' on class 'Program'. Continuing without the application service provider. Error: Invalid column name 'UserType'.
leave it, thanks for your time. i solved it by adding another table to store usertype and other details and save it on register
 
Alright, thanks for letting me know :)
 

last day (15 days later) »