public EntityEntry <TEntity> Add(TEntity entity) { return(_context.Set <TEntity>() .Add(entity)); }
/// <summary> /// Constructor for IRepository Pattern implementation /// </summary> /// <param name="context">instance of DbContext</param> public Repository(TestDataBaseContext context) { _context = context; testDBEntity = _context.Set <TEntity>(); }