Connecting CustomMembershipProvider to a separate DB
Hi there!
I replaced the default MembershipProvider with a custom one.
During debugging I can see that the query that is executed from my custom MembersRepository class is returning result from the default DB(DB1) which keeps the content of my installation.
Connecting CustomMembershipProvider to a separate DB
Hi there! I replaced the default MembershipProvider with a custom one. During debugging I can see that the query that is executed from my custom MembersRepository class is returning result from the default DB(DB1) which keeps the content of my installation.
Here is my Web.config
ConnectionString:
And the membership:
How am I supposed to give to the UmbracoMembershipProvider in my web.config spare connection string so it can take from DB2?
Hi ggesheva,
Please have a look here https://github.com/Shazwazza/UmbracoIdentity/issues/82
After made checks: there was no property named connectionStringName in the class MembersMembershipProvider or it's base classes so I had to force it:
I am pretty sure it would be much better code if I extended my membership provider and added the connection string name through configuration.
is working on a reply...