Exemplo n.º 1
0
        public static ISqlCeSpecificQueryable <TSource> TablesInScopeHint <TSource>(
            this ISqlCeSpecificQueryable <TSource> source,
            [SqlQueryDependent] string hint)
            where TSource : notnull
        {
            var currentSource = LinqExtensions.ProcessSourceQueryable?.Invoke(source) ?? source;

            return(new SqlCeSpecificQueryable <TSource>(currentSource.Provider.CreateQuery <TSource>(
                                                            Expression.Call(
                                                                null,
                                                                MethodHelper.GetMethodInfo(TablesInScopeHint, source, hint),
                                                                currentSource.Expression, Expression.Constant(hint)))));
        }
Exemplo n.º 2
0
 public static ISqlCeSpecificQueryable <TSource> WithPagLockInScope <TSource>(this ISqlCeSpecificQueryable <TSource> query)
     where TSource : notnull
 {
     return(TablesInScopeHint(query, Table.PagLock));
 }