1

Hello I want to add role based authentication for my aspnetcore2.0 + postgresql project. for this reason I followed How to create roles in asp.net core and assign them to users

but I get error

Cannot create a DbSet for 'IdentityRole' because this type is not included in the model for the context

by the way, I dont have identityrole and identityuser tables in my db table.

the simple project can be downloaded from http://eticaret.turkalpkucur.com/katmanliproje2.rar

1 Answers1

0

If your context its called DBContext maybe the namespace it is wrong.

Elialber Lopes
  • 536
  • 6
  • 14