Exemplo n.º 1
0
        public ProfessionalNetworkRepository(IProfNetworkDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentException("An instance of DbContext is required to use this repository.", "context");
            }

            this.Context = context;
            this.DbSet   = this.Context.Set <T>();
        }
 public DeletableEntityRepository(IProfNetworkDbContext context)
     : base(context)
 {
 }
 public ProfessionalNetworkData(IProfNetworkDbContext context)
 {
     this.context      = context;
     this.repositories = new Dictionary <Type, object>();
 }