w4rcT
w4rcT

Reputation: 332

ServiceStack - Custom UserAuth/Details

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

Upvotes: 1

Views: 42

Answers (1)

mythz
mythz

Reputation: 143319

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.

Upvotes: 1

Related Questions