Mineplex2018-withcommit/Website/LOC.Website.Common/Models/NautilusRepositoryFactory.cs
Jonathan Williams 3fb52c5c71 Initial Commit
2013-08-27 08:14:08 -07:00

23 lines
616 B
C#

namespace LOC.Website.Common.Data
{
using Contexts;
using Core.Data;
using StructureMap;
[PluginFamily(IsSingleton = true, Scope = InstanceScope.Singleton)]
public class NautilusRepositoryFactory : INautilusRepositoryFactory
{
private readonly IRepositoryFactory _repositoryFactory;
public NautilusRepositoryFactory(IRepositoryFactory repositoryFactory)
{
_repositoryFactory = repositoryFactory;
}
public IRepository CreateRepository()
{
return _repositoryFactory.CreateRepository<LocContext>();
}
}
}