public TEntity GetById(TKey id)
        {
            var expression = EntityUtility.BuildEqualityExpressionForId <TEntity, TKey>(id);
            var entity     = DbSet.FirstOrDefault(expression);

            return(entity);
        }