Monday, December 31, 2012

MVC Database Migration.

Add: Connection String:
In the Package Manager Console window at the PM> prompt enter "Enable-Migrations -ContextTypeName MvcMovie.Models.MovieDBContext".
In the Package Manager Console window, enter the command "add-migration Initial" to create the initial migration.
In the Package Manager Console, enter the command "update-database" to create the database and run the Seed method.

Wednesday, October 10, 2012

Backup and Restore SharePoint Sites using Power Shell:

Backup/Restore from one server to another or from one Site Collection to another (with PowerShell command)
In SharePoint 2010, PowerShell command Backup-SPSite is used for taking backup. you can get details of the command from the msdn link. The following command will backup the site collection ‘http://myserver’.
Backup Command: Restore-SPSite -Identity http://myserver -Path "c:\backup\file.bak"
Restore Command for new site: Restore-SPSite -Identity http://myserver -Path "c:\backup\file.bak"
Restore Command for existing site: Restore-SPSite -Identity http://myserver -Path "c:\backup\file.bak" -force

Wednesday, September 26, 2012

Multi Tenant SaaS Application

http://msdn.microsoft.com/en-us/library/aa479086.aspx
http://www.devx.com/webdev/Article/44977
http://dba.stackexchange.com/questions/16745/handling-growing-number-of-tenants-in-multi-tenant-database-architecture
http://www.ibm.com/developerworks/webservices/library/ws-middleware/