using Microsoft.EntityFrameworkCore;
#if NETFRAMEWORK
using System;
#endif

namespace DigitalData.Core.Infrastructure.Factory
#if NET
    ;
#elif NETFRAMEWORK
    {
#endif

public class DbSetFactory<TDbContext,TEntity> where TDbContext : DbContext where TEntity : class
{
    public readonly Func<TDbContext, DbSet<TEntity>> Create;

    public DbSetFactory(Func<TDbContext, DbSet<TEntity>> create)
    {
        Create = create;
    }
}

#if NETFRAMEWORK
    }
#endif