Пример #1
0
 /// <inheritdoc />
 public Task <IEnumerable <T> > FetchAsync <T>(string cql, params object[] args)
 {
     return(FetchAsync <T>(Cql.New(cql, args, CqlQueryOptions.None)));
 }
Пример #2
0
 /// <inheritdoc />
 public void Execute(string cql, params object[] args)
 {
     Execute(Cql.New(cql, args, CqlQueryOptions.None));
 }
Пример #3
0
 /// <inheritdoc />
 public Task <IEnumerable <T> > FetchAsync <T>(CqlQueryOptions options = null)
 {
     return(FetchAsync <T>(Cql.New(string.Empty, new object[0], options ?? CqlQueryOptions.None)));
 }
Пример #4
0
 /// <inheritdoc />
 public AppliedInfo <T> UpdateIf <T>(string cql, params object[] args)
 {
     return(UpdateIf <T>(Cql.New(cql, args, CqlQueryOptions.None)));
 }
Пример #5
0
 /// <inheritdoc />
 public void Delete <T>(string cql, params object[] args)
 {
     Delete <T>(Cql.New(cql, args, CqlQueryOptions.None));
 }
Пример #6
0
 /// <inheritdoc />
 public T Single <T>(string cql, params object[] args)
 {
     return(Single <T>(Cql.New(cql, args, CqlQueryOptions.None)));
 }
Пример #7
0
 /// <inheritdoc />
 public T FirstOrDefault <T>(string cql, params object[] args)
 {
     return(FirstOrDefault <T>(Cql.New(cql, args, CqlQueryOptions.None)));
 }
Пример #8
0
 /// <inheritdoc />
 public IPage <T> FetchPage <T>(CqlQueryOptions queryOptions = null)
 {
     return(FetchPage <T>(Cql.New(string.Empty, new object[0], queryOptions ?? new CqlQueryOptions())));
 }
Пример #9
0
 /// <inheritdoc />
 public IPage <T> FetchPage <T>(int pageSize, byte[] pagingState, string cql, params object[] args)
 {
     return(FetchPage <T>(Cql.New(cql, args, new CqlQueryOptions().SetPageSize(pageSize).SetPagingState(pagingState))));
 }
Пример #10
0
 /// <inheritdoc />
 public Task <AppliedInfo <T> > DeleteIfAsync <T>(string cql, params object[] args)
 {
     return(DeleteIfAsync <T>(Cql.New(cql, args, CqlQueryOptions.None)));
 }
Пример #11
0
 /// <inheritdoc />
 public IEnumerable <T> Fetch <T>(CqlQueryOptions queryOptions = null)
 {
     // Just let the SQL be auto-generated
     return(Fetch <T>(Cql.New(string.Empty, new object[0], queryOptions ?? CqlQueryOptions.None)));
 }
Пример #12
0
 /// <inheritdoc />
 public Task ExecuteAsync(string cql, params object[] args)
 {
     return(ExecuteAsync(Cql.New(cql, args, CqlQueryOptions.None)));
 }
Пример #13
0
 /// <inheritdoc />
 public Task DeleteAsync <T>(string cql, params object[] args)
 {
     return(DeleteAsync <T>(Cql.New(cql, args, CqlQueryOptions.None)));
 }
Пример #14
0
 /// <inheritdoc />
 public Task <T> SingleOrDefaultAsync <T>(string cql, params object[] args)
 {
     return(SingleOrDefaultAsync <T>(Cql.New(cql, args, CqlQueryOptions.None)));
 }
Пример #15
0
 /// <inheritdoc />
 public Task <IPage <T> > FetchPageAsync <T>(int pageSize, byte[] pagingState, string query, object[] args)
 {
     return(FetchPageAsync <T>(Cql.New(query, args, new CqlQueryOptions().SetPageSize(pageSize).SetPagingState(pagingState))));
 }
Пример #16
0
 /// <inheritdoc />
 public Task <IPage <T> > FetchPageAsync <T>(CqlQueryOptions options = null)
 {
     return(FetchPageAsync <T>(Cql.New(string.Empty, new object[0], options ?? new CqlQueryOptions())));
 }