توسعه Asp.net Core و Asp.net Core Identity
نویسنده: غفار منفرد
تاریخ: ۱۳۹۵/۰۵/۱۳ ۰:۴
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
از دوستان و نویسندگان سایت جهت مشارکت در پروژه ای که در Github قرار دادم با عنوان
AspnetCoreMultilayer و بحث Customize Asp.net Core Identity و Dependency
Injection با StructureMap دعوت میکنم.
هدف : شخصی سازی و توسعه کامل یک Template کاربردی تحت وب از تکنولوژی جدید Asp.net Core
ErrorCS0311The type 'SampleFive.DomainLayer.Models.ApplicationRole' cannot be used as type parameter 'TRole' in the generic type or method 'UserStore<TUser, TRole, TContext, TKey, TUserClaim, TUserRole, TUserLogin, TUserToken>'. There is no implicit reference conversion from 'SampleFive.DomainLayer.Models.ApplicationRole' to 'Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<int, SampleFive.DomainLayer.Models.ApplicationUserRole, Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRoleClaim<int>>'. SampleFive.IoC..NETCoreApp,Version=v1.1 H:\WebApp\CustomizeAspdotnetCore\src\SampleFive.IoC\AppIocConfig.cs32Active
public class ApplicationRole : IdentityRole<int, ApplicationUserRole, IdentityRoleClaim<int>>
ErrorCS0311The type 'SampleFive.DomainLayer.Models.ApplicationRole' cannot be used as type parameter 'TRole' in the generic type or method 'IdentityDbContext<TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken>'. There is no implicit reference conversion from 'SampleFive.DomainLayer.Models.ApplicationRole' to 'Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<int, SampleFive.DomainLayer.Models.ApplicationUserRole, SampleFive.DomainLayer.Models.ApplicationRoleClaim>'. SampleFive.DataLayer..NETCoreApp,Version=v1.1 H:\WebApp\CustomizeAspdotnetCore\SampleFive.DataLayer\Context\ApplicationDbContext.cs16Active
public class ApplicationRoleStore :
RoleStore<Role, ApplicationDbContext, int, UserRole, RoleClaim>,
IApplicationRoleStore
public class ApplicationUserStore :
UserStore<User, Role, ApplicationDbContext, int, UserClaim, UserRole, UserLogin, UserToken, RoleClaim>,
IApplicationUserStore