Mineplex2018-withcommit/Website/LOC.Core/Data/RepositoryFactory.cs

13 lines
301 B
C#
Raw Normal View History

2013-08-27 17:14:08 +02:00
namespace LOC.Core.Data
{
using System.Data.Entity;
public class RepositoryFactory : IRepositoryFactory
{
public IRepository CreateRepository<TContext>() where TContext : DbContext, new()
{
return new Repository<TContext>(new TContext());
}
}
}