Home > Software design >  ServiceStack - Custom UserAuth/Details
ServiceStack - Custom UserAuth/Details

Time:02-18

Is it possible to configure a class that implements both IUserAuth and IUserAuthDetail and used it when registering the IAuthRepository? Actually we use this class doing
new OrmLiteAuthProvider<OurClass,OurClass>()

ServiceStack throws the error “invalid column name ‘UserAuthId’”
Thanks in advance

CodePudding user response:

No they're 2 different data model classes where UserAuth has a 1:M relationship with UserAuthDetails.

Just use the existing UserAuthDetails if you're trying to save classes.

  • Related