c# - Why is the IdentityUser class in the Microsoft.AspNet.Identity.EntityFramework namespace and not in the Core package? -
why identityuser
class in microsoft.aspnet.identity.entityframework
package instead of being included in microsoft.aspnet.identity.core
package?
why should depend on entityframework? seems simple class.
what missing?
i typically separate data layer dal. adding dependency entityframework
identityuser
class seems bit much.
the design of core of identity not coupled ef or specific shape of user , role types. abstracted stores. in fact, given persistence provider, types don't need pocos @ all!
for identity 3.0 considered having our current types in core (in fact, @ point had them there) got pretty solid feedback people familiar other persistence frameworks although types can comply common definition of "poco", ef specific.
we considered having base classes in core extend ef in ef package. landed because there didn't seem enough benefit in this. between adding complexity of layer of inheritance (more complexity make easier introduce bugs) vs. fact types aren't complex , persistence provider writers want take them starting point welcome copy & paste code.
Comments
Post a Comment