Is it possbile to change the webpages_Membership, roles etc table names from a simple template created with web matrix? - 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?

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).

Related

Need advice on JHipster SaaS type application

I'm in the process of developping an application using JHipster that will be deployed as SaaS. I don't really know the path I need to take while generating and coding my project (monolithic/microservice+gateway/etc) i need you help.
Here is what I want :
Shared databases, differents schemas with multi-tenancy for each companies (already got this working on an monolithic project using this method : http://anakiou.blogspot.fr/2015/08/multi-tenant-application-with-spring.html)
Each companies have their own users
A web-page for the user of a company to log in and be redirected to the application wich will be using the correct schema corresponding to the company (the tenant is the company name, should i use a "master" schema in database to store all the users ?)
Use liquibase to update all schemas at once.
Thanks
For your login page you could use sub domain names: one per company name. If you own domain example.com you can assign company1.example.com to company1 and company2.example.com to company2. Wildcard DNS record could help.
Using nginx to define these virtual hosts, you could add an HTTP header to incoming requests to pass the company name to your app. This would enable you to adjust business logic and presentation to each company.

Umbraco 7 fields show locally, but not at remote server?

Does anyone know about this problem: Any new fields I add work fine in the local back office, but when I use Webmatrix to publish to the server (discountASP.net) fields don't show up. I did a view source in the browser and they're just not there!
For example, #Umbraco.Field("comments")
Thanks!
Daniel
If you add new field, they are only added in the database. That means you would need to update the database on the production website. Webmatrix doesn't do this for you (by default).
There are a few ways to handle this scenario:
copy your database to the production server (i would advice against this, because you might overwrite content and media changes on the production server)
create the fields manually on the production server (easy solution)
use a commercial package like courrier (personally i believe it's a good solution, only if you have a content staging workflow)
use a free package like usync (http://our.umbraco.org/projects/developer-tools/usync)

Spring MVC objects storage in application

I have a Spring MVC application.
For example I have a simple JSP page that displays list of Contact objects.
User can add, remove objects. The question is about the way of Contact objects storage. I cannot (by some reasons) use database. How can I anyway store list of objects globally for application?
According to this
it must be stored across whole application lifec-cycle. After I
restart server it the list should not be lost
you can use H2 or HSQLDB database and keep it content into single file, located in configurable path. Anyway, to keep some persisted data, you should use local file or remote storage, so, i think, it would simplify solution if you use such kind of database.

MVC4 Membership Tables not created on production environment

I'm attempting to use the ASP.NET universal providers in my MVC4 application. Among other places, this article describes how, the first time you attempt to register a user, the tables should auto-create in my DB.
I had this working on my internal app/db, but I used the asp.net web configuration tool to create my first user. When I deployed this to production, I attempted to register a user and was hit with an error indicating dbo.Applications didn't exist, which is one of the tables that should have been created.
Any thoughts on why these tables weren't created? I've made sure the System.Web.Providers dll was copied to the bin folder. I'm also sure my app can manage CRUD tasks on my database.
argh duh. Turns out I didn't have create perms set up for the app pool identity that was making the call. Hangs head in shame

Magento Multiwebsite With Single Database & Single Admin

Friends
Can i create multiple web store with single admin and database *in Magento*. i want to host these stores from different servers. In other words my database and code (different code for different site) would be on different servers.
for ex: i have abc.com and xyz.com stores created in Magento hosted on different servers but the database is same.
i have already created multi-store concept in Magento with Magento's default functionality but in that case we can't host different website from different server because there is a single code for both of the site or store
why i wanted to use this concept just because of security purpose and in case of server crash there will be no harm to other web store because they are hosted from different servers
Thanks....
Haven't seen such scheme before but I don't think this will work.
From the implementation's view, it requires a dedicated empty database in which the tables will be created as part of the installation process. So when you install a second Magento on the same database, all tables written by the previous Magento installation shall be erased.

Resources