Пример #1
0
        public static IEnumerable <TEntity> GetEntitiesEquals <TEntity>(this IAerospikeRepository repo, Expression <Func <TEntity, string> > expression, string value)
            where TEntity : IAeroEntity, new()
        {
            string name = ((MemberExpression)expression.Body).Member.Name;

            return(repo.GetEntitiesEquals <TEntity>(name, value));
        }
Пример #2
0
        public static IEnumerable <TEntity> GetEntitiesRange <TEntity>(this IAerospikeRepository repo, Expression <Func <TEntity, string> > expression, long begin, long end)
            where TEntity : IAeroEntity, new()
        {
            string name = ((MemberExpression)expression.Body).Member.Name;

            return(repo.GetEntitiesRange <TEntity>(name, begin, end));
        }