Skip to content
jgauffin edited this page Nov 29, 2012 · 4 revisions

1. Download the package:

Install-Package griffin.mvccontrib.sqlserver

2. Create an implementation of ILocalizationDbContext

Make sure that it uses the same connection for an entire HttpRequest.

Sample implementation: ILocalizationDbContext

3. Register the providers in your container

Register the following classes in your container:

container.AddType<ILocalizedTypesRepository, SqlLocalizedTypesRepository>();
container.AddType<IViewLocalizationRepository, SqlLocalizedViewsRepository>();
container.AddType<ILocalizedStringProvider, LocalizedStringProvider>();

4. Execute the following SQL:

https://github.com/jgauffin/griffin.mvccontrib/blob/master/source/Griffin.MvcContrib.SqlServer/Database.sql