c# - Getting current user's name in Identity 2.0 -
on _layout.cshtml page of site, want display current user's first , last name. stored in aspnetusers database table in name column.
anyone know how can data?
i looked in usermanager class, , see methods getemail , getphone, nothing name.
can elaborate more did name column came from?
preferred way of adding columns aspnetusers table enabling migrations in project, adding new property applicationuser class , adding new migrations , applying it.
by doing way have access new name property when fetch user usermanager.
Comments
Post a Comment