Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possbile to change the webpages_Membership, roles etc table names from a simple template created with web matrix?

Tags:

webmatrix

I've created a Web Matrix web site from the starter template which creates a database with the a few tables for the login details. Most of these are names webpages_Membership, webpages_Roles etc. The hosting company I use only gives me one database and I want to have more than one site on the server. I want to prefix the table name with something to make it unique, but it looks like the web matrix framework will only work with the set table name. Does anyone know if this is possible?

like image 525
EnglishBeer Avatar asked Dec 01 '25 14:12

EnglishBeer


1 Answers

If you use SQL Server Compact Edition, you can have as many databases as you like in your App_Data folder. Certainly something to consider if your sites aren't likely to be hugely busy. Otherwise you can develop your own Provider inheriting from ExtendedMembershipProvider and make it "site-aware". Dig around in the WebMatrix.Data source code for more details (available as part of the MVC source download).

like image 87
Mike Brind Avatar answered Dec 03 '25 23:12

Mike Brind



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!