API Diff between 2.9.6 and 1.0.7.1
4391 Additions
0 Removals
LinqToDB
-
public static class AnalyticFunctions
- public interface IAggregateFunction<TR> : IAnalyticFunction<TR>
- public interface IAggregateFunctionSelfContained<TR> : IAggregateFunction<TR>, IAnalyticFunction<TR>, IReadyToFunction<TR>
- public interface IAnalyticFunction<TR>
- public interface IAnalyticFunctionWithoutWindow<TR>
- public interface IAndExpected<TR>
- public interface IBetweenStartExpected<TR>
- public interface IBoundaryExpected<TR>
- public interface INeedOrderByAndMaybeOverWithPartition<TR>
- public interface INeedSingleOrderByAndMaybeOverWithPartition<TR>
- public interface INeedsOrderByOnly<TR>
- public interface INeedsWithinGroupWithOrderAndMaybePartition<TR>
- public interface INeedsWithinGroupWithOrderOnly<TR>
- public interface INeedsWithinGroupWithSingleOrderAndMaybePartition<TR>
- public interface IOrderedAcceptOverReadyToFunction<TR> : IReadyToFunctionOrOverWithPartition<TR>, IReadyToFunction<TR>
- public interface IOrderedReadyToFunction<TR> : IReadyToFunction<TR>
- public interface IOrderedReadyToWindowing<TR> : IReadyToFunction<TR>
- public interface IOverMayHavePartition<TR> : IReadyToFunction<TR>
- public interface IOverMayHavePartitionAndOrder<TR> : IReadyToFunction<TR>, INeedsOrderByOnly<TR>
- public interface IOverWithPartitionNeeded<TR>
- public interface IPartitionDefinedReadyForSortingWithWindow<TR> : IReadyForSortingWithWindow<TR>, IReadyToFunction<TR>
- public interface IPartitionedMayHaveOrder<TR> : IReadyToFunction<TR>, INeedsOrderByOnly<TR>
- public interface IReadyForFullAnalyticClause<TR> : IReadyToFunction<TR>, IReadyForSortingWithWindow<TR>
- public interface IReadyForSortingWithWindow<TR>
- public interface IReadyToFunction<TR>
- public interface IReadyToFunctionOrOverWithPartition<TR> : IReadyToFunction<TR>
- public interface ISecondBoundaryExpected<TR>
- public static double Average<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr, AggregateModifier modifier)
- public static double Average<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr, AggregateModifier modifier)
- public static IAggregateFunctionSelfContained<T> Average<T>(this ISqlExtension ext, object expr)
- public static IAggregateFunctionSelfContained<T> Average<T>(this ISqlExtension ext, object expr, AggregateModifier modifier)
- public static decimal Corr<T>(this IEnumerable<T> source, Expression<Func<T, object>> expr1, Expression<Func<T, object>> expr2)
- public static decimal Corr<TEntity>(this IQueryable<TEntity> source, Expression<Func<TEntity, object>> expr1, Expression<Func<TEntity, object>> expr2)
- public static IAggregateFunctionSelfContained<T> Corr<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<int> Count(this ISqlExtension ext)
- public static IAggregateFunctionSelfContained<int> Count<T>(this ISqlExtension ext, T expr)
- public static IAggregateFunctionSelfContained<int> Count(this ISqlExtension ext, object expr, AggregateModifier modifier)
- public static int CountExt<TEntity>(this IEnumerable<TEntity> source, Func<TEntity, object> expr)
- public static int CountExt<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr, AggregateModifier modifier)
- public static int CountExt<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr, AggregateModifier modifier = 0)
- public static decimal CovarPop<T>(this IEnumerable<T> source, Expression<Func<T, object>> expr1, Expression<Func<T, object>> expr2)
- public static decimal CovarPop<TEntity>(this IQueryable<TEntity> source, Expression<Func<TEntity, object>> expr1, Expression<Func<TEntity, object>> expr2)
- public static IAggregateFunctionSelfContained<T> CovarPop<T>(this ISqlExtension ext, T expr1, T expr2)
- public static decimal CovarSamp<T>(this IEnumerable<T> source, Expression<Func<T, object>> expr1, Expression<Func<T, object>> expr2)
- public static decimal CovarSamp<TEntity>(this IQueryable<TEntity> source, Expression<Func<TEntity, object>> expr1, Expression<Func<TEntity, object>> expr2)
- public static IAggregateFunctionSelfContained<T> CovarSamp<T>(this ISqlExtension ext, T expr1, T expr2)
- public static INeedsWithinGroupWithOrderOnly<TR> CumeDist<TR>(this ISqlExtension ext, object[] expr)
- public static IAnalyticFunctionWithoutWindow<TR> CumeDist<TR>(this ISqlExtension ext)
- public static INeedsWithinGroupWithOrderOnly<long> DenseRank(this ISqlExtension ext, object expr1, object expr2)
- public static IAnalyticFunctionWithoutWindow<long> DenseRank(this ISqlExtension ext)
- public static IAggregateFunctionSelfContained<T> FirstValue<T>(this ISqlExtension ext, T expr, Nulls nulls)
- public static INeedOrderByAndMaybeOverWithPartition<TR> KeepFirst<TR>(this IAggregateFunction<TR> ext)
- public static INeedOrderByAndMaybeOverWithPartition<TR> KeepLast<TR>(this IAggregateFunction<TR> ext)
- public static IAnalyticFunctionWithoutWindow<T> Lag<T>(this ISqlExtension ext, T expr, Nulls nulls)
- public static IAnalyticFunctionWithoutWindow<T> Lag<T>(this ISqlExtension ext, T expr, Nulls nulls, int offset, int? default)
- public static IAggregateFunctionSelfContained<T> LastValue<T>(this ISqlExtension ext, T expr, Nulls nulls)
- public static IAnalyticFunctionWithoutWindow<T> Lead<T>(this ISqlExtension ext, T expr, Nulls nulls)
- public static IAnalyticFunctionWithoutWindow<T> Lead<T>(this ISqlExtension ext, T expr, Nulls nulls, int offset, int? default)
- public static INeedsWithinGroupWithOrderAndMaybePartition<string> ListAgg<T>(this ISqlExtension ext, T expr)
- public static INeedsWithinGroupWithOrderAndMaybePartition<string> ListAgg<T>(this ISqlExtension ext, T expr, string delimiter)
- public static TV Max<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr, AggregateModifier modifier)
- public static TV Max<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr, AggregateModifier modifier)
- public static IAggregateFunctionSelfContained<T> Max<T>(this ISqlExtension ext, T expr)
- public static IAggregateFunctionSelfContained<T> Max<T>(this ISqlExtension ext, T expr, AggregateModifier modifier)
- public static long Median<TEntity, T>(this IEnumerable<TEntity> source, Func<TEntity, T> expr)
- public static long Median<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr)
- public static IReadyToFunctionOrOverWithPartition<T> Median<T>(this ISqlExtension ext, T expr)
- public static TV Min<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr, AggregateModifier modifier)
- public static TV Min<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr, AggregateModifier modifier)
- public static IAggregateFunctionSelfContained<T> Min<T>(this ISqlExtension ext, T expr)
- public static IAggregateFunctionSelfContained<T> Min<T>(this ISqlExtension ext, T expr, AggregateModifier modifier)
- public static IAggregateFunctionSelfContained<T> NthValue<T>(this ISqlExtension ext, T expr, long n)
- public static IAggregateFunctionSelfContained<T> NthValue<T>(this ISqlExtension ext, T expr, long n, From from, Nulls nulls)
- public static IAnalyticFunctionWithoutWindow<T> NTile<T>(this ISqlExtension ext, T expr)
- public static INeedsWithinGroupWithSingleOrderAndMaybePartition<T> PercentileCont<T>(this ISqlExtension ext, object expr)
- public static INeedsWithinGroupWithSingleOrderAndMaybePartition<T> PercentileDisc<T>(this ISqlExtension ext, object expr)
- public static INeedsWithinGroupWithOrderOnly<T> PercentRank<T>(this ISqlExtension ext, object[] expr)
- public static IAnalyticFunctionWithoutWindow<T> PercentRank<T>(this ISqlExtension ext)
- public static INeedsWithinGroupWithOrderOnly<long> Rank(this ISqlExtension ext, object[] expr)
- public static IAnalyticFunctionWithoutWindow<long> Rank(this ISqlExtension ext)
- public static IOverWithPartitionNeeded<TR> RatioToReport<TR>(this ISqlExtension ext, object expr)
- public static IAggregateFunctionSelfContained<T> RegrAvgX<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<T> RegrAvgY<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<long> RegrCount(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<T> RegrIntercept<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<T> RegrR2<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<T> RegrSlope<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<T> RegrSXX<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<T> RegrSXY<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAggregateFunctionSelfContained<T> RegrSYY<T>(this ISqlExtension ext, object expr1, object expr2)
- public static IAnalyticFunctionWithoutWindow<long> RowNumber(this ISqlExtension ext)
- public static double StdDev<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr)
- public static double StdDev<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr, AggregateModifier modifier)
- public static double StdDev<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr, AggregateModifier modifier = 0)
- public static IAggregateFunctionSelfContained<T> StdDev<T>(this ISqlExtension ext, object expr)
- public static IAggregateFunctionSelfContained<T> StdDev<T>(this ISqlExtension ext, object expr, AggregateModifier modifier)
- public static decimal StdDevPop<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr)
- public static decimal StdDevPop<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr)
- public static IAggregateFunctionSelfContained<T> StdDevPop<T>(this ISqlExtension ext, object expr)
- public static decimal StdDevSamp<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr)
- public static decimal StdDevSamp<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr)
- public static IAggregateFunctionSelfContained<T> StdDevSamp<T>(this ISqlExtension ext, object expr)
- public static IAggregateFunctionSelfContained<T> Sum<T>(this ISqlExtension ext, T expr)
- public static IAggregateFunctionSelfContained<T> Sum<T>(this ISqlExtension ext, T expr, AggregateModifier modifier)
- public static TV Variance<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr)
- public static TV Variance<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr, AggregateModifier modifier)
- public static TV Variance<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr, AggregateModifier modifier = 0)
- public static IAggregateFunctionSelfContained<T> Variance<T>(this ISqlExtension ext, object expr)
- public static IAggregateFunctionSelfContained<T> Variance<T>(this ISqlExtension ext, object expr, AggregateModifier modifier)
- public static decimal VarPop<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr)
- public static decimal VarPop<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr)
- public static IAggregateFunctionSelfContained<T> VarPop<T>(this ISqlExtension ext, object expr)
- public static decimal VarSamp<TEntity, TV>(this IEnumerable<TEntity> source, Func<TEntity, TV> expr)
- public static decimal VarSamp<TEntity, TV>(this IQueryable<TEntity> source, Expression<Func<TEntity, TV>> expr)
- public static IAggregateFunctionSelfContained<T> VarSamp<T>(this ISqlExtension ext, object expr)
-
public static class AsyncExtensions
- public static Task<bool> AllAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token = default)
- public static Task<bool> AnyAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<bool> AnyAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token = default)
- public static Task<double> AverageAsync(this IQueryable<int> source, CancellationToken token = default)
- public static Task<double?> AverageAsync(this IQueryable<int?> source, CancellationToken token = default)
- public static Task<double> AverageAsync(this IQueryable<long> source, CancellationToken token = default)
- public static Task<double?> AverageAsync(this IQueryable<long?> source, CancellationToken token = default)
- public static Task<float> AverageAsync(this IQueryable<float> source, CancellationToken token = default)
- public static Task<float?> AverageAsync(this IQueryable<float?> source, CancellationToken token = default)
- public static Task<double> AverageAsync(this IQueryable<double> source, CancellationToken token = default)
- public static Task<double?> AverageAsync(this IQueryable<double?> source, CancellationToken token = default)
- public static Task<decimal> AverageAsync(this IQueryable<decimal> source, CancellationToken token = default)
- public static Task<decimal?> AverageAsync(this IQueryable<decimal?> source, CancellationToken token = default)
- public static Task<double> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int>> selector, CancellationToken token = default)
- public static Task<double?> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int?>> selector, CancellationToken token = default)
- public static Task<double> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long>> selector, CancellationToken token = default)
- public static Task<double?> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long?>> selector, CancellationToken token = default)
- public static Task<float> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float>> selector, CancellationToken token = default)
- public static Task<float?> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float?>> selector, CancellationToken token = default)
- public static Task<double> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double>> selector, CancellationToken token = default)
- public static Task<double?> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double?>> selector, CancellationToken token = default)
- public static Task<decimal> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal>> selector, CancellationToken token = default)
- public static Task<decimal?> AverageAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector, CancellationToken token = default)
- public static Task<bool> ContainsAsync<TSource>(this IQueryable<TSource> source, TSource item, CancellationToken token = default)
- public static Task<int> CountAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<int> CountAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token = default)
- public static Task<TSource> FirstAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<TSource> FirstAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token = default)
- public static Task<TSource> FirstOrDefaultAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<TSource> FirstOrDefaultAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token = default)
- public static Task ForEachAsync<TSource>(this IQueryable<TSource> source, Action<TSource> action, CancellationToken token = default)
- public static Task ForEachUntilAsync<TSource>(this IQueryable<TSource> source, Func<TSource, bool> func, CancellationToken token = default)
- public static Task<long> LongCountAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<long> LongCountAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token = default)
- public static Task<TSource> MaxAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<TResult> MaxAsync<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector, CancellationToken token = default)
- public static Task<TSource> MinAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<TResult> MinAsync<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector, CancellationToken token = default)
- public static Task<TSource> SingleAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<TSource> SingleAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token = default)
- public static Task<TSource> SingleOrDefaultAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<TSource> SingleOrDefaultAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token = default)
- public static Task<int> SumAsync(this IQueryable<int> source, CancellationToken token = default)
- public static Task<int?> SumAsync(this IQueryable<int?> source, CancellationToken token = default)
- public static Task<long> SumAsync(this IQueryable<long> source, CancellationToken token = default)
- public static Task<long?> SumAsync(this IQueryable<long?> source, CancellationToken token = default)
- public static Task<float> SumAsync(this IQueryable<float> source, CancellationToken token = default)
- public static Task<float?> SumAsync(this IQueryable<float?> source, CancellationToken token = default)
- public static Task<double> SumAsync(this IQueryable<double> source, CancellationToken token = default)
- public static Task<double?> SumAsync(this IQueryable<double?> source, CancellationToken token = default)
- public static Task<decimal> SumAsync(this IQueryable<decimal> source, CancellationToken token = default)
- public static Task<decimal?> SumAsync(this IQueryable<decimal?> source, CancellationToken token = default)
- public static Task<int> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int>> selector, CancellationToken token = default)
- public static Task<int?> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int?>> selector, CancellationToken token = default)
- public static Task<long> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long>> selector, CancellationToken token = default)
- public static Task<long?> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long?>> selector, CancellationToken token = default)
- public static Task<float> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float>> selector, CancellationToken token = default)
- public static Task<float?> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float?>> selector, CancellationToken token = default)
- public static Task<double> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double>> selector, CancellationToken token = default)
- public static Task<double?> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double?>> selector, CancellationToken token = default)
- public static Task<decimal> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal>> selector, CancellationToken token = default)
- public static Task<decimal?> SumAsync<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector, CancellationToken token = default)
- public static Task<TSource[]> ToArrayAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
- public static Task<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(this IQueryable<TSource> source, Func<TSource, TKey> keySelector, CancellationToken token = default)
- public static Task<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(this IQueryable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer, CancellationToken token = default)
- public static Task<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(this IQueryable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, CancellationToken token = default)
- public static Task<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(this IQueryable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer, CancellationToken token = default)
- public static Task<List<TSource>> ToListAsync<TSource>(this IQueryable<TSource> source, CancellationToken token = default)
-
public class CompiledQuery
- protected CompiledQuery(LambdaExpression query)
- public static Func<TDC, TResult> Compile<TDC, TResult>(Expression<Func<TDC, TResult>> query) where TDC : IDataContext
- public static Func<TDC, TArg1, TResult> Compile<TDC, TArg1, TResult>(Expression<Func<TDC, TArg1, TResult>> query) where TDC : IDataContext
- public static Func<TDC, TArg1, TArg2, TResult> Compile<TDC, TArg1, TArg2, TResult>(Expression<Func<TDC, TArg1, TArg2, TResult>> query) where TDC : IDataContext
- public static Func<TDC, TArg1, TArg2, TArg3, TResult> Compile<TDC, TArg1, TArg2, TArg3, TResult>(Expression<Func<TDC, TArg1, TArg2, TArg3, TResult>> query) where TDC : IDataContext
- public static Func<TDC, TArg1, TArg2, TArg3, TArg4, TResult> Compile<TDC, TArg1, TArg2, TArg3, TArg4, TResult>(Expression<Func<TDC, TArg1, TArg2, TArg3, TArg4, TResult>> query) where TDC : IDataContext
- public static Func<TDC, TArg1, TArg2, TArg3, TArg4, TArg5, TResult> Compile<TDC, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(Expression<Func<TDC, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>> query) where TDC : IDataContext
- public TResult Invoke<TDC, TResult>(TDC dataContext)
- public TResult Invoke<TDC, T1, TResult>(TDC dataContext, T1 arg1)
- public TResult Invoke<TDC, T1, T2, TResult>(TDC dataContext, T1 arg1, T2 arg2)
- public TResult Invoke<TDC, T1, T2, T3, TResult>(TDC dataContext, T1 arg1, T2 arg2, T3 arg3)
- public TResult Invoke<TDC, T1, T2, T3, T4, TResult>(TDC dataContext, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
- public TResult Invoke<TDC, T1, T2, T3, T4, T5, TResult>(TDC dataContext, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
-
public class DataContext : IDataContext, IEntityServices, IDisposable
-
public class DataContextTransaction : IDisposable
-
public static class DataExtensions
- public class SqlFormattableComparerAttribute : SqlQueryDependentAttribute
- public static MethodInfo SelectQueryMethodInfo
- public static Func<TDc, TResult> Compile<TDc, TResult>(this IDataContext dataContext, Expression<Func<TDc, TResult>> query) where TDc : IDataContext
- public static Func<TDc, TArg1, TResult> Compile<TDc, TArg1, TResult>(this IDataContext dataContext, Expression<Func<TDc, TArg1, TResult>> query) where TDc : IDataContext
- public static Func<TDc, TArg1, TArg2, TResult> Compile<TDc, TArg1, TArg2, TResult>(this IDataContext dataContext, Expression<Func<TDc, TArg1, TArg2, TResult>> query) where TDc : IDataContext
- public static Func<TDc, TArg1, TArg2, TArg3, TResult> Compile<TDc, TArg1, TArg2, TArg3, TResult>(this IDataContext dataContext, Expression<Func<TDc, TArg1, TArg2, TArg3, TResult>> query) where TDc : IDataContext
- public static ITable<T> CreateTable<T>(this IDataContext dataContext, string tableName = null, string databaseName = null, string schemaName = null, string statementHeader = null, string statementFooter = null, DefaultNullable defaultNullable = 0)
- public static Task<ITable<T>> CreateTableAsync<T>(this IDataContext dataContext, string tableName = null, string databaseName = null, string schemaName = null, string statementHeader = null, string statementFooter = null, DefaultNullable defaultNullable = 0, CancellationToken token = default)
- public static TempTable<T> CreateTempTable<T>(this IDataContext db, string tableName = null, string databaseName = null, string schemaName = null)
- public static TempTable<T> CreateTempTable<T>(this IDataContext db, IEnumerable<T> items, BulkCopyOptions options = null, string tableName = null, string databaseName = null, string schemaName = null)
- public static TempTable<T> CreateTempTable<T>(this IDataContext db, string tableName, IEnumerable<T> items, BulkCopyOptions options = null, string databaseName = null, string schemaName = null)
- public static TempTable<T> CreateTempTable<T>(this IDataContext db, IQueryable<T> items, string tableName = null, string databaseName = null, string schemaName = null, Action<ITable<T>> action = null)
- public static TempTable<T> CreateTempTable<T>(this IDataContext db, IQueryable<T> items, Action<EntityMappingBuilder<T>> setTable, string tableName = null, string databaseName = null, string schemaName = null, Action<ITable<T>> action = null)
- public static TempTable<T> CreateTempTable<T>(this IDataContext db, string tableName, IQueryable<T> items, string databaseName = null, string schemaName = null, Action<ITable<T>> action = null)
- public static TempTable<T> CreateTempTable<T>(this IDataContext db, string tableName, IQueryable<T> items, Action<EntityMappingBuilder<T>> setTable, string databaseName = null, string schemaName = null, Action<ITable<T>> action = null)
- public static int Delete<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<int> DeleteAsync<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken token = default)
- public static void DropTable<T>(this IDataContext dataContext, string tableName = null, string databaseName = null, string schemaName = null, bool throwExceptionIfNotExists = true)
- public static void DropTable<T>(this ITable<T> table, string tableName = null, string databaseName = null, string schemaName = null, bool throwExceptionIfNotExists = true)
- public static Task DropTableAsync<T>(this IDataContext dataContext, string tableName = null, string databaseName = null, string schemaName = null, bool throwExceptionIfNotExists = true, CancellationToken token = default)
- public static Task DropTableAsync<T>(this ITable<T> table, string tableName = null, string databaseName = null, string schemaName = null, bool throwExceptionIfNotExists = true, CancellationToken token = default)
- public static IQueryable<TEntity> FromSql<TEntity>(this IDataContext dataContext, FormattableString sql)
- public static IQueryable<TEntity> FromSql<TEntity>(this IDataContext dataContext, RawSqlString sql, object[] parameters)
- public static IQueryable<T> GetCte<T>(this IDataContext dataContext, Func<IQueryable<T>, IQueryable<T>> cteBody, string cteTableName = null)
- public static IQueryable<T> GetCte<T>(this IDataContext dataContext, string cteTableName, Func<IQueryable<T>, IQueryable<T>> cteBody)
- public static ITable<T> GetTable<T>(this IDataContext dataContext)
- public static ITable<T> GetTable<T>(this IDataContext dataContext, object instance, MethodInfo methodInfo, object[] parameters)
- public static int Insert<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<int> InsertAsync<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken token = default)
- public static int InsertOrReplace<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<int> InsertOrReplaceAsync<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken token = default)
- public static decimal InsertWithDecimalIdentity<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<decimal> InsertWithDecimalIdentityAsync<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken token = default)
- public static object InsertWithIdentity<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<object> InsertWithIdentityAsync<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken token = default)
- public static int InsertWithInt32Identity<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<int> InsertWithInt32IdentityAsync<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken token = default)
- public static long InsertWithInt64Identity<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<long> InsertWithInt64IdentityAsync<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken token = default)
- public static IQueryable<TEntity> SelectQuery<TEntity>(this IDataContext dataContext, Expression<Func<TEntity>> selector)
- public static int Update<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<int> UpdateAsync<T>(this IDataContext dataContext, T obj, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken token = default)
-
public enum DataType
-
public class EntityCreatedEventArgs
-
public class ExpressionMethodAttribute : Attribute
-
public class ExprParameterAttribute : Attribute
-
public static class ExtensionlBuilderExtensions
- public static ISqlExpression Add(this ISqExtensionBuilder builder, ISqlExpression left, ISqlExpression right, Type type)
- public static ISqlExpression Add<T>(this ISqExtensionBuilder builder, ISqlExpression left, ISqlExpression right)
- public static ISqlExpression Add(this ISqExtensionBuilder builder, ISqlExpression left, int value)
- public static SqlExtensionParam AddExpression(this ISqExtensionBuilder builder, string name, string expr)
- public static SqlExtensionParam AddParameter(this ISqExtensionBuilder builder, string name, string value)
- public static ISqlExpression Dec(this ISqExtensionBuilder builder, ISqlExpression expr)
- public static ISqlExpression Div(this ISqExtensionBuilder builder, ISqlExpression expr1, ISqlExpression expr2, Type type)
- public static ISqlExpression Div<T>(this ISqExtensionBuilder builder, ISqlExpression expr1, ISqlExpression expr2)
- public static ISqlExpression Div(this ISqExtensionBuilder builder, ISqlExpression expr1, int value)
- public static ISqlExpression Inc(this ISqExtensionBuilder builder, ISqlExpression expr)
- public static ISqlExpression Mul(this ISqExtensionBuilder builder, ISqlExpression left, ISqlExpression right, Type type)
- public static ISqlExpression Mul<T>(this ISqExtensionBuilder builder, ISqlExpression left, ISqlExpression right)
- public static ISqlExpression Mul(this ISqExtensionBuilder builder, ISqlExpression expr1, int value)
- public static ISqlExpression Sub(this ISqExtensionBuilder builder, ISqlExpression left, ISqlExpression right, Type type)
- public static ISqlExpression Sub<T>(this ISqExtensionBuilder builder, ISqlExpression left, ISqlExpression right)
- public static ISqlExpression Sub(this ISqExtensionBuilder builder, ISqlExpression left, int value)
-
public interface IDataContext : IEntityServices, IDisposable
-
public interface IEntityServices
-
public interface IExtensionsAdapter
- Task<bool> AllAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token)
- Task<bool> AnyAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<bool> AnyAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token)
- Task<double> AverageAsync(IQueryable<int> source, CancellationToken token)
- Task<double?> AverageAsync(IQueryable<int?> source, CancellationToken token)
- Task<double> AverageAsync(IQueryable<long> source, CancellationToken token)
- Task<double?> AverageAsync(IQueryable<long?> source, CancellationToken token)
- Task<float> AverageAsync(IQueryable<float> source, CancellationToken token)
- Task<float?> AverageAsync(IQueryable<float?> source, CancellationToken token)
- Task<double> AverageAsync(IQueryable<double> source, CancellationToken token)
- Task<double?> AverageAsync(IQueryable<double?> source, CancellationToken token)
- Task<decimal> AverageAsync(IQueryable<decimal> source, CancellationToken token)
- Task<decimal?> AverageAsync(IQueryable<decimal?> source, CancellationToken token)
- Task<double> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, int>> selector, CancellationToken token)
- Task<double?> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, int?>> selector, CancellationToken token)
- Task<double> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, long>> selector, CancellationToken token)
- Task<double?> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, long?>> selector, CancellationToken token)
- Task<float> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, float>> selector, CancellationToken token)
- Task<float?> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, float?>> selector, CancellationToken token)
- Task<double> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, double>> selector, CancellationToken token)
- Task<double?> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, double?>> selector, CancellationToken token)
- Task<decimal> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, decimal>> selector, CancellationToken token)
- Task<decimal?> AverageAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector, CancellationToken token)
- Task<bool> ContainsAsync<TSource>(IQueryable<TSource> source, TSource item, CancellationToken token)
- Task<int> CountAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<int> CountAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token)
- Task<TSource> FirstAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<TSource> FirstAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token)
- Task<TSource> FirstOrDefaultAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<TSource> FirstOrDefaultAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token)
- Task ForEachAsync<TSource>(IQueryable<TSource> source, Action<TSource> action, CancellationToken token)
- Task<long> LongCountAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<long> LongCountAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token)
- Task<TSource> MaxAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<TResult> MaxAsync<TSource, TResult>(IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector, CancellationToken token)
- Task<TSource> MinAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<TResult> MinAsync<TSource, TResult>(IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector, CancellationToken token)
- Task<TSource> SingleAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<TSource> SingleAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token)
- Task<TSource> SingleOrDefaultAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<TSource> SingleOrDefaultAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, CancellationToken token)
- Task<int> SumAsync(IQueryable<int> source, CancellationToken token)
- Task<int?> SumAsync(IQueryable<int?> source, CancellationToken token)
- Task<long> SumAsync(IQueryable<long> source, CancellationToken token)
- Task<long?> SumAsync(IQueryable<long?> source, CancellationToken token)
- Task<float> SumAsync(IQueryable<float> source, CancellationToken token)
- Task<float?> SumAsync(IQueryable<float?> source, CancellationToken token)
- Task<double> SumAsync(IQueryable<double> source, CancellationToken token)
- Task<double?> SumAsync(IQueryable<double?> source, CancellationToken token)
- Task<decimal> SumAsync(IQueryable<decimal> source, CancellationToken token)
- Task<decimal?> SumAsync(IQueryable<decimal?> source, CancellationToken token)
- Task<int> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, int>> selector, CancellationToken token)
- Task<int?> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, int?>> selector, CancellationToken token)
- Task<long> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, long>> selector, CancellationToken token)
- Task<long?> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, long?>> selector, CancellationToken token)
- Task<float> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, float>> selector, CancellationToken token)
- Task<float?> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, float?>> selector, CancellationToken token)
- Task<double> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, double>> selector, CancellationToken token)
- Task<double?> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, double?>> selector, CancellationToken token)
- Task<decimal> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, decimal>> selector, CancellationToken token)
- Task<decimal?> SumAsync<TSource>(IQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector, CancellationToken token)
- Task<TSource[]> ToArrayAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
- Task<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(IQueryable<TSource> source, Func<TSource, TKey> keySelector, CancellationToken token)
- Task<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>(IQueryable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer, CancellationToken token)
- Task<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(IQueryable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, CancellationToken token)
- Task<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>(IQueryable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer, CancellationToken token)
- Task<List<TSource>> ToListAsync<TSource>(IQueryable<TSource> source, CancellationToken token)
-
public interface IMergeable<TTarget, TSource> : IMergeableSource<TTarget, TSource>
-
public interface IMergeableOn<TTarget, TSource>
-
public interface IMergeableSource<TTarget, TSource>
-
public interface IMergeableUsing<TTarget>
-
public interface ITable<T> : IExpressionQuery<T>, IOrderedQueryable<T>, IEnumerable<T>, IEnumerable, IOrderedQueryable, IQueryable, IQueryable<T>, IQueryProviderAsync, IQueryProvider, IExpressionQuery
-
public interface ITableMutable<T>
-
public class KeepConnectionAliveScope : IDisposable
-
public static class LinqExtensions
- public static IExtensionsAdapter ExtensionsAdapter { get; set; }
- public static Func<IQueryable, IQueryable> ProcessSourceQueryable { get; set; }
- public static IQueryable<TSource> AsCte<TSource>(this IQueryable<TSource> source)
- public static IQueryable<TSource> AsCte<TSource>(this IQueryable<TSource> source, string name)
- public static IQueryable<TElement> AsQueryable<TElement>(this IEnumerable<TElement> source, IDataContext dataContext)
- public static IQueryable<TSource> AsSubQuery<TSource>(this IQueryable<TSource> source)
- public static IUpdatable<T> AsUpdatable<T>(this IQueryable<T> source)
- public static IQueryable<TResult> CrossJoin<TOuter, TInner, TResult>(this IQueryable<TOuter> outer, IQueryable<TInner> inner, Expression<Func<TOuter, TInner, TResult>> resultSelector)
- public static ITable<T> DatabaseName<T>(this ITable<T> table, string name)
- public static int Delete<T>(this IQueryable<T> source)
- public static int Delete<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate)
- public static Task<int> DeleteAsync<T>(this IQueryable<T> source, CancellationToken token = default)
- public static Task<int> DeleteAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, CancellationToken token = default)
- public static int Drop<T>(this ITable<T> target, bool throwExceptionIfNotExists = true)
- public static Task<int> DropAsync<T>(this ITable<T> target, bool throwExceptionIfNotExists = true, CancellationToken token = default)
- public static TSource ElementAt<TSource>(this IQueryable<TSource> source, Expression<Func<int>> index)
- public static Task<TSource> ElementAtAsync<TSource>(this IQueryable<TSource> source, Expression<Func<int>> index, CancellationToken token = default)
- public static TSource ElementAtOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<int>> index)
- public static Task<TSource> ElementAtOrDefaultAsync<TSource>(this IQueryable<TSource> source, Expression<Func<int>> index, CancellationToken token = default)
- public static IQueryable<TSource> ExceptAll<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2)
- public static IQueryable<TSource> FullJoin<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
- public static IQueryable<TResult> FullJoin<TOuter, TInner, TResult>(this IQueryable<TOuter> outer, IQueryable<TInner> inner, Expression<Func<TOuter, TInner, bool>> predicate, Expression<Func<TOuter, TInner, TResult>> resultSelector)
- public static string GenerateTestString(this IQueryable query, bool mangleNames = false)
- public static IQueryable<TSource> HasUniqueKey<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
- public static IQueryable<TSource> Having<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
- public static IQueryable<TSource> InnerJoin<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
- public static IQueryable<TResult> InnerJoin<TOuter, TInner, TResult>(this IQueryable<TOuter> outer, IQueryable<TInner> inner, Expression<Func<TOuter, TInner, bool>> predicate, Expression<Func<TOuter, TInner, TResult>> resultSelector)
- public static int Insert<T>(this ITable<T> target, Expression<Func<T>> setter)
- public static int Insert<T>(this IValueInsertable<T> source)
- public static int Insert<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter)
- public static int Insert<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source)
- public static Task<int> InsertAsync<T>(this ITable<T> target, Expression<Func<T>> setter, CancellationToken token = default)
- public static Task<int> InsertAsync<T>(this IValueInsertable<T> source, CancellationToken token = default)
- public static Task<int> InsertAsync<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter, CancellationToken token = default)
- public static Task<int> InsertAsync<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source, CancellationToken token = default)
- public static int InsertOrUpdate<T>(this ITable<T> target, Expression<Func<T>> insertSetter, Expression<Func<T, T>> onDuplicateKeyUpdateSetter)
- public static int InsertOrUpdate<T>(this ITable<T> target, Expression<Func<T>> insertSetter, Expression<Func<T, T>> onDuplicateKeyUpdateSetter, Expression<Func<T>> keySelector)
- public static Task<int> InsertOrUpdateAsync<T>(this ITable<T> target, Expression<Func<T>> insertSetter, Expression<Func<T, T>> onDuplicateKeyUpdateSetter, CancellationToken token = default)
- public static Task<int> InsertOrUpdateAsync<T>(this ITable<T> target, Expression<Func<T>> insertSetter, Expression<Func<T, T>> onDuplicateKeyUpdateSetter, Expression<Func<T>> keySelector, CancellationToken token = default)
- public static decimal InsertWithDecimalIdentity<T>(this ITable<T> target, Expression<Func<T>> setter)
- public static decimal? InsertWithDecimalIdentity<T>(this IValueInsertable<T> source)
- public static decimal? InsertWithDecimalIdentity<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter)
- public static decimal? InsertWithDecimalIdentity<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source)
- public static Task<decimal> InsertWithDecimalIdentityAsync<T>(this ITable<T> target, Expression<Func<T>> setter, CancellationToken token = default)
- public static Task<decimal?> InsertWithDecimalIdentityAsync<T>(this IValueInsertable<T> source, CancellationToken token = default)
- public static Task<decimal?> InsertWithDecimalIdentityAsync<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter, CancellationToken token = default)
- public static Task<decimal?> InsertWithDecimalIdentityAsync<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source, CancellationToken token = default)
- public static object InsertWithIdentity<T>(this ITable<T> target, Expression<Func<T>> setter)
- public static object InsertWithIdentity<T>(this IValueInsertable<T> source)
- public static object InsertWithIdentity<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter)
- public static object InsertWithIdentity<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source)
- public static Task<object> InsertWithIdentityAsync<T>(this ITable<T> target, Expression<Func<T>> setter, CancellationToken token = default)
- public static Task<object> InsertWithIdentityAsync<T>(this IValueInsertable<T> source, CancellationToken token = default)
- public static Task<object> InsertWithIdentityAsync<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter, CancellationToken token = default)
- public static Task<object> InsertWithIdentityAsync<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source, CancellationToken token = default)
- public static int InsertWithInt32Identity<T>(this ITable<T> target, Expression<Func<T>> setter)
- public static int? InsertWithInt32Identity<T>(this IValueInsertable<T> source)
- public static int? InsertWithInt32Identity<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter)
- public static int? InsertWithInt32Identity<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source)
- public static Task<int> InsertWithInt32IdentityAsync<T>(this ITable<T> target, Expression<Func<T>> setter, CancellationToken token = default)
- public static Task<int?> InsertWithInt32IdentityAsync<T>(this IValueInsertable<T> source, CancellationToken token = default)
- public static Task<int?> InsertWithInt32IdentityAsync<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter, CancellationToken token = default)
- public static Task<int?> InsertWithInt32IdentityAsync<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source, CancellationToken token = default)
- public static long InsertWithInt64Identity<T>(this ITable<T> target, Expression<Func<T>> setter)
- public static long? InsertWithInt64Identity<T>(this IValueInsertable<T> source)
- public static long? InsertWithInt64Identity<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter)
- public static long? InsertWithInt64Identity<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source)
- public static Task<long> InsertWithInt64IdentityAsync<T>(this ITable<T> target, Expression<Func<T>> setter, CancellationToken token = default)
- public static Task<long?> InsertWithInt64IdentityAsync<T>(this IValueInsertable<T> source, CancellationToken token = default)
- public static Task<long?> InsertWithInt64IdentityAsync<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter, CancellationToken token = default)
- public static Task<long?> InsertWithInt64IdentityAsync<TSource, TTarget>(this ISelectInsertable<TSource, TTarget> source, CancellationToken token = default)
- public static IQueryable<TSource> IntersectAll<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2)
- public static IValueInsertable<T> Into<T>(this IDataContext dataContext, ITable<T> target)
- public static ISelectInsertable<TSource, TTarget> Into<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target)
- public static IQueryable<TSource> Join<TSource>(this IQueryable<TSource> source, SqlJoinType joinType, Expression<Func<TSource, bool>> predicate)
- public static IQueryable<TResult> Join<TOuter, TInner, TResult>(this IQueryable<TOuter> outer, IQueryable<TInner> inner, SqlJoinType joinType, Expression<Func<TOuter, TInner, bool>> predicate, Expression<Func<TOuter, TInner, TResult>> resultSelector)
- public static IQueryable<TSource> LeftJoin<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
- public static IQueryable<TResult> LeftJoin<TOuter, TInner, TResult>(this IQueryable<TOuter> outer, IQueryable<TInner> inner, Expression<Func<TOuter, TInner, bool>> predicate, Expression<Func<TOuter, TInner, TResult>> resultSelector)
- public static ITable<T> LoadWith<T>(this ITable<T> table, Expression<Func<T, object>> selector)
- public static ITable<T> OwnerName<T>(this ITable<T> table, string name)
- public static IQueryable<TSource> RightJoin<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
- public static IQueryable<TResult> RightJoin<TOuter, TInner, TResult>(this IQueryable<TOuter> outer, IQueryable<TInner> inner, Expression<Func<TOuter, TInner, bool>> predicate, Expression<Func<TOuter, TInner, TResult>> resultSelector)
- public static ITable<T> SchemaName<T>(this ITable<T> table, string name)
- public static T Select<T>(this IDataContext dataContext, Expression<Func<T>> selector)
- public static Task<T> SelectAsync<T>(this IDataContext dataContext, Expression<Func<T>> selector)
- public static IUpdatable<T> Set<T, TV>(this IQueryable<T> source, Expression<Func<T, TV>> extract, Expression<Func<T, TV>> update)
- public static IUpdatable<T> Set<T, TV>(this IUpdatable<T> source, Expression<Func<T, TV>> extract, Expression<Func<T, TV>> update)
- public static IUpdatable<T> Set<T, TV>(this IQueryable<T> source, Expression<Func<T, TV>> extract, Expression<Func<TV>> update)
- public static IUpdatable<T> Set<T, TV>(this IUpdatable<T> source, Expression<Func<T, TV>> extract, Expression<Func<TV>> update)
- public static IUpdatable<T> Set<T, TV>(this IQueryable<T> source, Expression<Func<T, TV>> extract, TV value)
- public static IUpdatable<T> Set<T, TV>(this IUpdatable<T> source, Expression<Func<T, TV>> extract, TV value)
- public static IQueryable<TSource> Skip<TSource>(this IQueryable<TSource> source, Expression<Func<int>> count)
- public static ITable<T> TableName<T>(this ITable<T> table, string name)
- public static IQueryable<TSource> Take<TSource>(this IQueryable<TSource> source, Expression<Func<int>> count)
- public static IQueryable<TSource> Take<TSource>(this IQueryable<TSource> source, Expression<Func<int>> count, TakeHints hints)
- public static IQueryable<TSource> Take<TSource>(this IQueryable<TSource> source, int count, TakeHints hints)
- public static IOrderedQueryable<TSource> ThenOrBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
- public static IOrderedQueryable<TSource> ThenOrByDescending<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
- public static int Truncate<T>(this ITable<T> target, bool resetIdentity = true)
- public static Task<int> TruncateAsync<T>(this ITable<T> target, bool resetIdentity = true, CancellationToken token = default)
- public static IQueryable<TSource> UnionAll<TSource>(this IQueryable<TSource> source1, IEnumerable<TSource> source2)
- public static int Update<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter)
- public static int Update<T>(this IQueryable<T> source, Expression<Func<T, T>> setter)
- public static int Update<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, Expression<Func<T, T>> setter)
- public static int Update<T>(this IUpdatable<T> source)
- public static int Update<TSource, TTarget>(this IQueryable<TSource> source, Expression<Func<TSource, TTarget>> target, Expression<Func<TSource, TTarget>> setter)
- public static Task<int> UpdateAsync<TSource, TTarget>(this IQueryable<TSource> source, ITable<TTarget> target, Expression<Func<TSource, TTarget>> setter, CancellationToken token = default)
- public static Task<int> UpdateAsync<T>(this IQueryable<T> source, Expression<Func<T, T>> setter, CancellationToken token = default)
- public static Task<int> UpdateAsync<T>(this IQueryable<T> source, Expression<Func<T, bool>> predicate, Expression<Func<T, T>> setter, CancellationToken token = default)
- public static Task<int> UpdateAsync<T>(this IUpdatable<T> source, CancellationToken token = default)
- public static Task<int> UpdateAsync<TSource, TTarget>(this IQueryable<TSource> source, Expression<Func<TSource, TTarget>> target, Expression<Func<TSource, TTarget>> setter, CancellationToken token = default)
- public static IValueInsertable<T> Value<T, TV>(this ITable<T> source, Expression<Func<T, TV>> field, Expression<Func<TV>> value)
- public static IValueInsertable<T> Value<T, TV>(this ITable<T> source, Expression<Func<T, TV>> field, TV value)
- public static IValueInsertable<T> Value<T, TV>(this IValueInsertable<T> source, Expression<Func<T, TV>> field, Expression<Func<TV>> value)
- public static IValueInsertable<T> Value<T, TV>(this IValueInsertable<T> source, Expression<Func<T, TV>> field, TV value)
- public static ISelectInsertable<TSource, TTarget> Value<TSource, TTarget, TValue>(this ISelectInsertable<TSource, TTarget> source, Expression<Func<TTarget, TValue>> field, Expression<Func<TSource, TValue>> value)
- public static ISelectInsertable<TSource, TTarget> Value<TSource, TTarget, TValue>(this ISelectInsertable<TSource, TTarget> source, Expression<Func<TTarget, TValue>> field, Expression<Func<TValue>> value)
- public static ISelectInsertable<TSource, TTarget> Value<TSource, TTarget, TValue>(this ISelectInsertable<TSource, TTarget> source, Expression<Func<TTarget, TValue>> field, TValue value)
- public static ITable<T> With<T>(this ITable<T> table, string args)
- public static ITable<T> WithTableExpression<T>(this ITable<T> table, string expression)
-
public static class LinqToDBConstants
-
public class LinqToDBException : Exception
-
public class MergeDefinition<TTarget, TSource> : IMergeableUsing<TTarget>, IMergeableOn<TTarget, TSource>, IMergeable<TTarget, TSource>, IMergeableSource<TTarget, TSource>
- public class Operation<TTarget, TSource>
- public IEnumerable<TSource> EnumerableSource { get; }
- public string Hint { get; }
- public Type KeyType { get; }
- public Expression<Func<TTarget, TSource, bool>> MatchPredicate { get; }
- public Operation<TTarget, TSource>[] Operations { get; }
- public IQueryable<TSource> QueryableSource { get; }
- public Expression SourceKey { get; }
- public ITable<TTarget> Target { get; }
- public Expression TargetKey { get; }
- public MergeDefinition(ITable<TTarget> target)
- public MergeDefinition(ITable<TTarget> target, string hint)
- public MergeDefinition(ITable<TTarget> target, IQueryable<TSource> source)
- public MergeDefinition(ITable<TTarget> target, IQueryable<TSource> source, string hint)
- public MergeDefinition<TTarget, TSource> AddOnKey<TKey>(Expression<Func<TTarget, TKey>> targetKey, Expression<Func<TSource, TKey>> sourceKey)
- public MergeDefinition<TTarget, TSource> AddOnPredicate(Expression<Func<TTarget, TSource, bool>> matchPredicate)
- public MergeDefinition<TTarget, TSource> AddOperation(Operation<TTarget, TSource> operation)
- public MergeDefinition<TTarget, TNewSource> AddSource<TNewSource>(IQueryable<TNewSource> source)
- public MergeDefinition<TTarget, TNewSource> AddSource<TNewSource>(IEnumerable<TNewSource> source)
-
public static class MergeExtensions
- public static IMergeable<TTarget, TSource> DeleteWhenMatched<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge)
- public static IMergeable<TTarget, TSource> DeleteWhenMatchedAnd<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TTarget, TSource, bool>> searchCondition)
- public static IMergeable<TTarget, TSource> DeleteWhenNotMatchedBySource<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge)
- public static IMergeable<TTarget, TSource> DeleteWhenNotMatchedBySourceAnd<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TTarget, bool>> searchCondition)
- public static IMergeable<TTarget, TTarget> InsertWhenNotMatched<TTarget>(this IMergeableSource<TTarget, TTarget> merge)
- public static IMergeable<TTarget, TSource> InsertWhenNotMatched<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TSource, TTarget>> setter)
- public static IMergeable<TTarget, TTarget> InsertWhenNotMatchedAnd<TTarget>(this IMergeableSource<TTarget, TTarget> merge, Expression<Func<TTarget, bool>> searchCondition)
- public static IMergeable<TTarget, TSource> InsertWhenNotMatchedAnd<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TSource, bool>> searchCondition, Expression<Func<TSource, TTarget>> setter)
- public static IMergeableUsing<TTarget> Merge<TTarget>(this ITable<TTarget> target)
- public static IMergeableUsing<TTarget> Merge<TTarget>(this ITable<TTarget> target, string hint)
- public static int Merge<TTarget, TSource>(this IMergeable<TTarget, TSource> merge)
- public static Task<int> MergeAsync<TTarget, TSource>(this IMergeable<TTarget, TSource> merge, CancellationToken token = default)
- public static IMergeableOn<TTarget, TSource> MergeInto<TTarget, TSource>(this IQueryable<TSource> source, ITable<TTarget> target)
- public static IMergeableOn<TTarget, TSource> MergeInto<TTarget, TSource>(this IQueryable<TSource> source, ITable<TTarget> target, string hint)
- public static IMergeableSource<TTarget, TSource> On<TTarget, TSource, TKey>(this IMergeableOn<TTarget, TSource> merge, Expression<Func<TTarget, TKey>> targetKey, Expression<Func<TSource, TKey>> sourceKey)
- public static IMergeableSource<TTarget, TSource> On<TTarget, TSource>(this IMergeableOn<TTarget, TSource> merge, Expression<Func<TTarget, TSource, bool>> matchCondition)
- public static IMergeableSource<TTarget, TTarget> OnTargetKey<TTarget>(this IMergeableOn<TTarget, TTarget> merge)
- public static IMergeable<TTarget, TTarget> UpdateWhenMatched<TTarget>(this IMergeableSource<TTarget, TTarget> merge)
- public static IMergeable<TTarget, TSource> UpdateWhenMatched<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TTarget, TSource, TTarget>> setter)
- public static IMergeable<TTarget, TTarget> UpdateWhenMatchedAnd<TTarget>(this IMergeableSource<TTarget, TTarget> merge, Expression<Func<TTarget, TTarget, bool>> searchCondition)
- public static IMergeable<TTarget, TSource> UpdateWhenMatchedAnd<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TTarget, TSource, bool>> searchCondition, Expression<Func<TTarget, TSource, TTarget>> setter)
- public static IMergeable<TTarget, TTarget> UpdateWhenMatchedAndThenDelete<TTarget>(this IMergeableSource<TTarget, TTarget> merge, Expression<Func<TTarget, TTarget, bool>> searchCondition, Expression<Func<TTarget, TTarget, bool>> deleteCondition)
- public static IMergeable<TTarget, TSource> UpdateWhenMatchedAndThenDelete<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TTarget, TSource, bool>> searchCondition, Expression<Func<TTarget, TSource, TTarget>> setter, Expression<Func<TTarget, TSource, bool>> deleteCondition)
- public static IMergeable<TTarget, TTarget> UpdateWhenMatchedThenDelete<TTarget>(this IMergeableSource<TTarget, TTarget> merge, Expression<Func<TTarget, TTarget, bool>> deleteCondition)
- public static IMergeable<TTarget, TSource> UpdateWhenMatchedThenDelete<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TTarget, TSource, TTarget>> setter, Expression<Func<TTarget, TSource, bool>> deleteCondition)
- public static IMergeable<TTarget, TSource> UpdateWhenNotMatchedBySource<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TTarget, TTarget>> setter)
- public static IMergeable<TTarget, TSource> UpdateWhenNotMatchedBySourceAnd<TTarget, TSource>(this IMergeableSource<TTarget, TSource> merge, Expression<Func<TTarget, bool>> searchCondition, Expression<Func<TTarget, TTarget>> setter)
- public static IMergeableOn<TTarget, TSource> Using<TTarget, TSource>(this IMergeableUsing<TTarget> merge, IQueryable<TSource> source)
- public static IMergeableOn<TTarget, TSource> Using<TTarget, TSource>(this IMergeableUsing<TTarget> merge, IEnumerable<TSource> source)
- public static IMergeableOn<TTarget, TTarget> UsingTarget<TTarget>(this IMergeableUsing<TTarget> merge)
-
public enum MergeOperationType
-
public static class ProviderName
-
public static class Sql
- public enum AggregateModifier
- public static class ConvertTo<TTo>
- public enum DateParts
- public class EnumAttribute : Attribute
- public class ExpressionAttribute : Attribute
- public class ExtensionAttribute : ExpressionAttribute
- public enum From
- public class FunctionAttribute : ExpressionAttribute
- public enum GroupBy
- public interface IExtensionCallBuilder
- public interface IQueryableContainer
- public enum IsNullableType
- public interface ISqExtensionBuilder
- public interface ISqlExtension
- public interface IStringAggregate<T> : IQueryableContainer
- public interface IStringAggregateNotOrdered<T> : IStringAggregate<T>, IQueryableContainer
- public interface IStringAggregateOrdered<T> : IStringAggregate<T>, IQueryableContainer
- public enum Nulls
- public enum NullsPosition
- public class PropertyAttribute : ExpressionAttribute
- public class SqlExtension
- public class SqlExtensionParam
- public class TableExpressionAttribute : TableFunctionAttribute
- public class TableFunctionAttribute : Attribute
- public enum TableQualification
- public static long BigInt { get; }
- public static bool Bit { get; }
- public static DateTime CurrentTimestamp { get; }
- public static DateTime CurrentTimestamp2 { get; }
- public static DateTime CurrentTimestampUtc { get; }
- public static DateTime Date { get; }
- public static int DateFirst { get; }
- public static DateTime DateTime { get; }
- public static DateTime DateTime2 { get; }
- public static DateTimeOffset DateTimeOffset { get; }
- public static string DefaultChar { get; }
- public static decimal DefaultDecimal { get; }
- public static string DefaultNChar { get; }
- public static string DefaultNVarChar { get; }
- public static string DefaultVarChar { get; }
- public static ISqlExtension Ext { get; }
- public static double Float { get; }
- public static int Int { get; }
- public static decimal Money { get; }
- public static float Real { get; }
- public static DateTime SmallDateTime { get; }
- public static short SmallInt { get; }
- public static decimal SmallMoney { get; }
- public static DateTime Time { get; }
- public static byte TinyInt { get; }
- public static decimal? Abs(decimal? value)
- public static double? Abs(double? value)
- public static short? Abs(short? value)
- public static int? Abs(int? value)
- public static long? Abs(long? value)
- public static sbyte? Abs(sbyte? value)
- public static float? Abs(float? value)
- public static double? Acos(double? value)
- public static object[] AllColumns()
- public static double? Asin(double? value)
- public static T AsNotNull<T>(T value)
- public static T AsNotNullable<T>(T value)
- public static T AsNullable<T>(T value)
- public static T AsSql<T>(T obj)
- public static double? Atan(double? value)
- public static double? Atan2(double? x, double? y)
- public static bool Between<T>(this T value, T low, T high) where T : IComparable
- public static bool Between<T>(this T? value, T? low, T? high) where T : struct, IComparable
- public static decimal? Ceiling(decimal? value)
- public static double? Ceiling(double? value)
- public static string Char(int length)
- public static int? CharIndex(string value, string str)
- public static int? CharIndex(string value, string str, int? startLocation)
- public static int? CharIndex(char? value, string str)
- public static int? CharIndex(char? value, string str, int? startLocation)
- public static string Concat(object[] args)
- public static string Concat(string[] args)
- public static string ConcatStrings(string separator, string[] arguments)
- public static TTo Convert<TTo, TFrom>(TTo to, TFrom from)
- public static TTo Convert<TTo, TFrom>(TTo to, TFrom from, int format)
- public static TTo Convert<TTo, TFrom>(TFrom obj)
- public static TTo Convert2<TTo, TFrom>(TTo to, TFrom from)
- public static T ConvertNullable<T>(T? value) where T : struct
- public static double? Cos(double? value)
- public static double? Cosh(double? value)
- public static double? Cot(double? value)
- public static DateTime? DateAdd(DateParts part, double? number, DateTime? date)
- public static DateTimeOffset? DateAdd(DateParts part, double? number, DateTimeOffset? date)
- public static int? DateDiff(DateParts part, DateTime? startDate, DateTime? endDate)
- public static int? DatePart(DateParts part, DateTime? date)
- public static int? DatePart(DateParts part, DateTimeOffset? date)
- public static TimeSpan? DateToTime(DateTime? date)
- public static decimal Decimal(int precision)
- public static decimal Decimal(int precision, int scale)
- public static decimal? Degrees(decimal? value)
- public static double? Degrees(double? value)
- public static short? Degrees(short? value)
- public static int? Degrees(int? value)
- public static long? Degrees(long? value)
- public static sbyte? Degrees(sbyte? value)
- public static float? Degrees(float? value)
- public static double? Exp(double? value)
- public static T Expr<T>(FormattableString sql)
- public static T Expr<T>(RawSqlString sql, object[] parameters)
- public static ISqlExpression FieldExpr<T, TV>(ITable<T> table, Expression<Func<T, TV>> fieldExpr)
- public static ISqlExpression FieldExpr<T, TV>(ITable<T> table, Expression<Func<T, TV>> fieldExpr, bool qualified)
- public static ISqlExpression FieldExpr(object fieldExpr)
- public static ISqlExpression FieldExpr(object fieldExpr, bool qualified)
- public static string FieldName<T>(ITable<T> table, Expression<Func<T, object>> fieldExpr)
- public static string FieldName<T>(ITable<T> table, Expression<Func<T, object>> fieldExpr, bool qualified)
- public static string FieldName(object fieldExpr)
- public static string FieldName(object fieldExpr, bool qualified)
- public static decimal? Floor(decimal? value)
- public static double? Floor(double? value)
- public static bool FreeText(object table, string text)
- public static DateTime GetDate()
- public static string Left(string str, int? length)
- public static int? Length(string str)
- public static int? Length(Binary value)
- public static bool Like(string matchExpression, string pattern)
- public static bool Like(string matchExpression, string pattern, char? escapeCharacter)
- public static decimal? Log(decimal? value)
- public static double? Log(double? value)
- public static double? Log(double? newBase, double? value)
- public static decimal? Log(decimal? newBase, decimal? value)
- public static double? Log10(double? value)
- public static string Lower(string str)
- public static DateTime? MakeDateTime(int? year, int? month, int? day)
- public static DateTime? MakeDateTime(int? year, int? month, int? day, int? hour, int? minute, int? second)
- public static string NChar(int length)
- public static Guid NewGuid()
- public static T NoConvert<T>(T expr)
- public static bool NotBetween<T>(this T value, T low, T high) where T : IComparable
- public static bool NotBetween<T>(this T? value, T? low, T? high) where T : struct, IComparable
- public static string NVarChar(int length)
- public static string PadLeft(string str, int? totalWidth, char? paddingChar)
- public static string PadRight(string str, int? totalWidth, char? paddingChar)
- public static double? Power(double? x, double? y)
- public static T Property<T>(object entity, string propertyName)
- public static string Replace(string str, string oldValue, string newValue)
- public static string Replace(string str, char? oldValue, char? newValue)
- public static string Reverse(string str)
- public static string Right(string str, int? length)
- public static decimal? Round(decimal? value)
- public static double? Round(double? value)
- public static decimal? Round(decimal? value, int? precision)
- public static double? Round(double? value, int? precision)
- public static decimal? RoundToEven(decimal? value)
- public static double? RoundToEven(double? value)
- public static decimal? RoundToEven(decimal? value, int? precision)
- public static double? RoundToEven(double? value, int? precision)
- public static int? Sign(decimal? value)
- public static int? Sign(double? value)
- public static int? Sign(short? value)
- public static int? Sign(int? value)
- public static int? Sign(long? value)
- public static int? Sign(sbyte? value)
- public static int? Sign(float? value)
- public static double? Sin(double? value)
- public static double? Sinh(double? value)
- public static string Space(int? length)
- public static double? Sqrt(double? value)
- public static IStringAggregateNotOrdered<string> StringAggregate(this IQueryable<string> source, string separator)
- public static IStringAggregateNotOrdered<T> StringAggregate<T>(this IEnumerable<T> source, string separator, Func<T, string> selector)
- public static IStringAggregateNotOrdered<T> StringAggregate<T>(this IQueryable<T> source, string separator, Expression<Func<T, string>> selector)
- public static IStringAggregateNotOrdered<string> StringAggregate(this IEnumerable<string> source, string separator)
- public static string Stuff(string str, int? startLocation, int? length, string value)
- public static string Stuff(IEnumerable<string> characterExpression, int? start, int? length, string replaceWithExpression)
- public static string Substring(string str, int? startIndex, int? length)
- public static ISqlExpression TableExpr<T>(ITable<T> table)
- public static ISqlExpression TableExpr<T>(ITable<T> table, TableQualification qualification)
- public static ISqlExpression TableExpr(object tableExpr)
- public static ISqlExpression TableExpr(object tableExpr, TableQualification qualification)
- public static string TableName<T>(ITable<T> table)
- public static string TableName<T>(ITable<T> table, TableQualification qualification)
- public static string TableName(object tableExpr)
- public static string TableName(object tableExpr, TableQualification qualification)
- public static double? Tan(double? value)
- public static double? Tanh(double? value)
- public static DateTime? ToDate(int? year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond)
- public static DateTime? ToDate(int? year, int? month, int? day, int? hour, int? minute, int? second)
- public static DateTime? ToDate(int? year, int? month, int? day)
- public static T ToNotNull<T>(T? value) where T : struct
- public static T ToNotNullable<T>(T? value) where T : struct
- public static T? ToNullable<T>(T value) where T : struct
- public static T ToSql<T>(T obj)
- public static string Trim(string str)
- public static string Trim(string str, char? ch)
- public static string TrimLeft(string str)
- public static string TrimLeft(string str, char? ch)
- public static string TrimRight(string str)
- public static string TrimRight(string str, char? ch)
- public static decimal? Truncate(decimal? value)
- public static double? Truncate(double? value)
- public static string Upper(string str)
- public static string VarChar(int length)
-
public enum SqlJoinType
-
public static class StringAggregateExtensions
- public static IStringAggregateOrdered<T> OrderBy<T, TKey>(this IStringAggregateNotOrdered<T> aggregate, Expression<Func<T, TKey>> expr)
- public static IStringAggregate<string> OrderBy(this IStringAggregateNotOrdered<string> aggregate)
- public static IStringAggregateOrdered<T> OrderByDescending<T, TKey>(this IStringAggregateNotOrdered<T> aggregate, Expression<Func<T, TKey>> expr)
- public static IStringAggregate<string> OrderByDescending(this IStringAggregateNotOrdered<string> aggregate)
- public static IStringAggregateOrdered<T> ThenBy<T, TKey>(this IStringAggregateOrdered<T> aggregate, Expression<Func<T, TKey>> expr)
- public static IStringAggregateOrdered<T> ThenByDescending<T, TKey>(this IStringAggregateOrdered<T> aggregate, Expression<Func<T, TKey>> expr)
- public static string ToValue<T>(this IStringAggregate<T> aggregate)
-
public enum TakeHints
-
public class TempTable<T> : ITable<T>, IExpressionQuery<T>, IOrderedQueryable<T>, IEnumerable<T>, IEnumerable, IOrderedQueryable, IQueryable, IQueryable<T>, IQueryProviderAsync, IQueryProvider, IExpressionQuery, ITableMutable<T>, IDisposable
- public long TotalCopied
- public string DatabaseName { get; }
- public IDataContext DataContext { get; }
- public string SchemaName { get; }
- public string TableName { get; }
- public TempTable(IDataContext db, string tableName = null, string databaseName = null, string schemaName = null)
- public TempTable(IDataContext db, IEnumerable<T> items, BulkCopyOptions options = null, string tableName = null, string databaseName = null, string schemaName = null)
- public TempTable(IDataContext db, string tableName, IEnumerable<T> items, BulkCopyOptions options = null, string databaseName = null, string schemaName = null)
- public TempTable(IDataContext db, IQueryable<T> items, string tableName = null, string databaseName = null, string schemaName = null, Action<ITable<T>> action = null)
- public TempTable(IDataContext db, string tableName, IQueryable<T> items, string databaseName = null, string schemaName = null, Action<ITable<T>> action = null)
- public long Copy(IEnumerable<T> items, BulkCopyOptions options = null)
- public virtual void Dispose()
- public string GetTableName()
- public long Insert(IQueryable<T> items)
LinqToDB.Async
LinqToDB.Common
-
public static class Array<T>
- public static readonly T[] Empty
-
public static class Configuration
-
public static class Convert<TFrom, TTo>
-
public static class Converter
-
public static class ConvertTo<TTo>
- public static TTo From<TFrom>(TFrom o)
-
public struct DbDataType
-
public static class DefaultValue
-
public static class DefaultValue<T>
- public static T Value { get; set; }
-
public class LinqToDBConvertException : LinqToDBException
-
public struct RawSqlString
-
public static class Tools
-
public static class Utils
- public static void MakeUniqueNames<T>(IEnumerable<T> items, IEnumerable<string> staticNames, Func<T, string> nameFunc, Action<T, string> nameSetter, string defaultName = "t", StringComparer comparer = null)
- public static void MakeUniqueNames<T>(IEnumerable<T> items, IEnumerable<string> staticNames, Func<T, string> nameFunc, Action<T, string> nameSetter, Func<T, string> defaultName, StringComparer comparer = null)
- public static void MakeUniqueNames<T>(IEnumerable<T> items, Func<string, bool> validatorFunc, Func<T, string> nameFunc, Action<T, string> nameSetter, Func<T, string> defaultName, StringComparer comparer = null)
LinqToDB.Common.Internal.Cache
-
public static class CacheEntryExtensions
- public static ICacheEntry AddExpirationToken(this ICacheEntry entry, IChangeToken expirationToken)
- public static ICacheEntry RegisterPostEvictionCallback(this ICacheEntry entry, PostEvictionDelegate callback)
- public static ICacheEntry RegisterPostEvictionCallback(this ICacheEntry entry, PostEvictionDelegate callback, object state)
- public static ICacheEntry SetAbsoluteExpiration(this ICacheEntry entry, TimeSpan relative)
- public static ICacheEntry SetAbsoluteExpiration(this ICacheEntry entry, DateTimeOffset absolute)
- public static ICacheEntry SetOptions(this ICacheEntry entry, MemoryCacheEntryOptions options)
- public static ICacheEntry SetPriority(this ICacheEntry entry, CacheItemPriority priority)
- public static ICacheEntry SetSize(this ICacheEntry entry, long size)
- public static ICacheEntry SetSlidingExpiration(this ICacheEntry entry, TimeSpan offset)
- public static ICacheEntry SetValue(this ICacheEntry entry, object value)
-
public static class CacheExtensions
- public static object Get(this IMemoryCache cache, object key)
- public static TItem Get<TItem>(this IMemoryCache cache, object key)
- public static TItem GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory)
- public static Task<TItem> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory)
- public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value)
- public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, DateTimeOffset absoluteExpiration)
- public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, TimeSpan absoluteExpirationRelativeToNow)
- public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, IChangeToken expirationToken)
- public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, MemoryCacheEntryOptions options)
- public static bool TryGetValue<TItem>(this IMemoryCache cache, object key, out TItem value)
-
public enum CacheItemPriority
-
public enum EvictionReason
-
public interface ICacheEntry : IDisposable
-
public interface IChangeToken
-
public interface IMemoryCache : IDisposable
-
public interface ISystemClock
-
public class MemoryCache : IMemoryCache, IDisposable
-
public static class MemoryCacheEntryExtensions
-
public class MemoryCacheEntryOptions
-
public class MemoryCacheOptions
-
public class PostEvictionCallbackRegistration
-
public sealed delegate PostEvictionDelegate : MulticastDelegate
-
public class SystemClock : ISystemClock
LinqToDB.Configuration
LinqToDB.Data
-
public class BulkCopyOptions
-
public class BulkCopyRowsCopied
-
public enum BulkCopyType
-
public class CommandInfo
- public CommandBehavior CommandBehavior
- public string CommandText
- public CommandType CommandType
- public DataConnection DataConnection
- public DataParameter[] Parameters
- public CommandInfo(DataConnection dataConnection, string commandText)
- public CommandInfo(DataConnection dataConnection, string commandText, DataParameter[] parameters)
- public CommandInfo(DataConnection dataConnection, string commandText, DataParameter parameter)
- public CommandInfo(DataConnection dataConnection, string commandText, object parameters)
- public static void ClearObjectReaderCache()
- public int Execute()
- public T Execute<T>()
- public Task<int> ExecuteAsync()
- public Task<int> ExecuteAsync(CancellationToken cancellationToken)
- public Task<T> ExecuteAsync<T>()
- public Task<T> ExecuteAsync<T>(CancellationToken cancellationToken)
- public int ExecuteProc()
- public T ExecuteProc<T>()
- public Task<int> ExecuteProcAsync()
- public Task<int> ExecuteProcAsync(CancellationToken cancellationToken)
- public Task<T> ExecuteProcAsync<T>()
- public Task<T> ExecuteProcAsync<T>(CancellationToken cancellationToken)
- public DataReader ExecuteReader()
- public Task<DataReaderAsync> ExecuteReaderAsync()
- public Task<DataReaderAsync> ExecuteReaderAsync(CancellationToken cancellationToken)
- public DataReader ExecuteReaderProc()
- public IEnumerable<T> Query<T>(Func<IDataReader, T> objectReader)
- public IEnumerable<T> Query<T>()
- public IEnumerable<T> Query<T>(T template)
- public Task QueryForEachAsync<T>(Func<IDataReader, T> objectReader, Action<T> action)
- public Task QueryForEachAsync<T>(Func<IDataReader, T> objectReader, Action<T> action, CancellationToken cancellationToken)
- public Task QueryForEachAsync<T>(Action<T> action)
- public Task QueryForEachAsync<T>(Action<T> action, CancellationToken cancellationToken)
- public T QueryMultiple<T>()
- public Task<T> QueryMultipleAsync<T>(CancellationToken cancellationToken = default)
- public IEnumerable<T> QueryProc<T>(Func<IDataReader, T> objectReader)
- public IEnumerable<T> QueryProc<T>()
- public IEnumerable<T> QueryProc<T>(T template)
- public T QueryProcMultiple<T>()
- public Task<T> QueryProcMultipleAsync<T>(CancellationToken cancellationToken = default)
- public Task<T[]> QueryToArrayAsync<T>(Func<IDataReader, T> objectReader)
- public Task<T[]> QueryToArrayAsync<T>(Func<IDataReader, T> objectReader, CancellationToken cancellationToken)
- public Task<T[]> QueryToArrayAsync<T>()
- public Task<T[]> QueryToArrayAsync<T>(CancellationToken cancellationToken)
- public Task<List<T>> QueryToListAsync<T>(Func<IDataReader, T> objectReader)
- public Task<List<T>> QueryToListAsync<T>(Func<IDataReader, T> objectReader, CancellationToken cancellationToken)
- public Task<List<T>> QueryToListAsync<T>()
- public Task<List<T>> QueryToListAsync<T>(CancellationToken cancellationToken)
-
public class DataConnection : ICloneable, IDataContext, IEntityServices, IDisposable
- public static Action<string, string> WriteTraceLine
- public string LastQuery
- public static string DefaultConfiguration { get; set; }
- public static string DefaultDataProvider { get; set; }
- public static ILinqToDBSettings DefaultSettings { get; set; }
- public static Action<TraceInfo> OnTrace { get; set; }
- public static TraceSwitch TraceSwitch { get; set; }
- public IDbCommand Command { get; set; }
- public int CommandTimeout { get; set; }
- public string ConfigurationString { get; }
- public IDbConnection Connection { get; }
- public string ConnectionString { get; }
- public IDataProvider DataProvider { get; }
- protected bool Disposed { get; }
- public int ID { get; }
- public bool InlineParameters { get; set; }
- public bool IsMarsEnabled { get; set; }
- public MappingSchema MappingSchema { get; }
- public List<string> NextQueryHints { get; }
- public Action<EntityCreatedEventArgs> OnEntityCreated { get; set; }
- public Action<TraceInfo> OnTraceConnection { get; set; }
- public List<string> QueryHints { get; }
- public IRetryPolicy RetryPolicy { get; set; }
- public bool? ThrowOnDisposed { get; set; }
- public IDbTransaction Transaction { get; }
- public event Action<DataConnection, IDbConnection> OnBeforeConnectionOpen
- public event Func<DataConnection, IDbConnection, CancellationToken, Task> OnBeforeConnectionOpenAsync
- public event EventHandler OnClosed
- public event EventHandler OnClosing
- public event Action<DataConnection, IDbConnection> OnConnectionOpened
- public event Func<DataConnection, IDbConnection, CancellationToken, Task> OnConnectionOpenedAsync
- public DataConnection()
- public DataConnection(MappingSchema mappingSchema)
- public DataConnection(string configurationString, MappingSchema mappingSchema)
- public DataConnection(string configurationString)
- public DataConnection(string providerName, string connectionString, MappingSchema mappingSchema)
- public DataConnection(string providerName, string connectionString)
- public DataConnection(IDataProvider dataProvider, string connectionString, MappingSchema mappingSchema)
- public DataConnection(IDataProvider dataProvider, string connectionString)
- public DataConnection(IDataProvider dataProvider, Func<IDbConnection> connectionFactory, MappingSchema mappingSchema)
- public DataConnection(IDataProvider dataProvider, Func<IDbConnection> connectionFactory)
- public DataConnection(IDataProvider dataProvider, IDbConnection connection, MappingSchema mappingSchema)
- public DataConnection(IDataProvider dataProvider, IDbConnection connection)
- public DataConnection(IDataProvider dataProvider, IDbConnection connection, bool disposeConnection)
- public DataConnection(IDataProvider dataProvider, IDbTransaction transaction, MappingSchema mappingSchema)
- public DataConnection(IDataProvider dataProvider, IDbTransaction transaction)
- public static void AddConfiguration(string configuration, string connectionString, IDataProvider dataProvider = null)
- public static void AddDataProvider(string providerName, IDataProvider dataProvider)
- public static void AddDataProvider(IDataProvider dataProvider)
- public static void AddOrSetConfiguration(string configuration, string connectionString, string dataProvider)
- public static void AddProviderDetector(Func<IConnectionStringSettings, string, IDataProvider> providerDetector)
- public static void ClearObjectReaderCache()
- public static string GetConnectionString(string configurationString)
- public static IDataProvider GetDataProvider(string configurationString)
- public static IDataProvider GetDataProvider(string providerName, string configurationString, string connectionString)
- public static IDataProvider GetDataProvider(string providerName, string connectionString)
- public static IReadOnlyDictionary<string, IDataProvider> GetRegisteredProviders()
- public static void SetConnectionString(string configuration, string connectionString)
- public static void SetConnectionStrings(IEnumerable<IConnectionStringSettings> connectionStrings)
- public static void TurnTraceSwitchOn(TraceLevel traceLevel = 3)
- public DataConnection AddMappingSchema(MappingSchema mappingSchema)
- public virtual DataConnectionTransaction BeginTransaction()
- public virtual DataConnectionTransaction BeginTransaction(IsolationLevel isolationLevel)
- public virtual Task<DataConnectionTransaction> BeginTransactionAsync(CancellationToken cancellationToken = default)
- public virtual Task<DataConnectionTransaction> BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken = default)
- protected void CheckAndThrowOnDisposed()
- public object Clone()
- public virtual void Close()
- public virtual Task CloseAsync(CancellationToken cancellationToken = default)
- public virtual void CommitTransaction()
- public virtual Task CommitTransactionAsync(CancellationToken cancellationToken = default)
- public IDbCommand CreateCommand()
- public void Dispose()
- public Task DisposeAsync(CancellationToken cancellationToken = default)
- public void DisposeCommand()
- public Task EnsureConnectionAsync(CancellationToken cancellationToken = default)
- protected virtual int ExecuteNonQuery(IDbCommand command)
- protected virtual Task<int> ExecuteNonQueryAsync(IDbCommand command, CancellationToken cancellationToken)
- protected virtual IDataReader ExecuteReader(IDbCommand command, CommandBehavior commandBehavior)
- protected virtual Task<DbDataReader> ExecuteReaderAsync(IDbCommand command, CommandBehavior commandBehavior, CancellationToken cancellationToken)
- protected virtual object ExecuteScalar(IDbCommand command)
- protected virtual Task<object> ExecuteScalarAsync(IDbCommand command, CancellationToken cancellationToken)
- public ITable<T> GetTable<T>()
- public ITable<T> GetTable<T>(object instance, MethodInfo methodInfo, object[] parameters)
- protected virtual SqlStatement ProcessQuery(SqlStatement statement)
- public virtual void RollbackTransaction()
- public virtual Task RollbackTransactionAsync(CancellationToken cancellationToken = default)
-
public static class DataConnectionExtensions
- public static BulkCopyRowsCopied BulkCopy<T>(this DataConnection dataConnection, BulkCopyOptions options, IEnumerable<T> source)
- public static BulkCopyRowsCopied BulkCopy<T>(this DataConnection dataConnection, int maxBatchSize, IEnumerable<T> source)
- public static BulkCopyRowsCopied BulkCopy<T>(this DataConnection dataConnection, IEnumerable<T> source)
- public static BulkCopyRowsCopied BulkCopy<T>(this ITable<T> table, BulkCopyOptions options, IEnumerable<T> source)
- public static BulkCopyRowsCopied BulkCopy<T>(this ITable<T> table, int maxBatchSize, IEnumerable<T> source)
- public static BulkCopyRowsCopied BulkCopy<T>(this ITable<T> table, IEnumerable<T> source)
- public static int Execute(this DataConnection connection, string sql)
- public static int Execute(this DataConnection connection, string sql, DataParameter[] parameters)
- public static int Execute(this DataConnection connection, string sql, object parameters)
- public static T Execute<T>(this DataConnection connection, string sql)
- public static T Execute<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static T Execute<T>(this DataConnection connection, string sql, DataParameter parameter)
- public static T Execute<T>(this DataConnection connection, string sql, object parameters)
- public static Task<int> ExecuteAsync(this DataConnection connection, string sql)
- public static Task<int> ExecuteAsync(this DataConnection connection, string sql, CancellationToken cancellationToken)
- public static Task<int> ExecuteAsync(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<int> ExecuteAsync(this DataConnection connection, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<int> ExecuteAsync(this DataConnection connection, string sql, object parameters)
- public static Task<int> ExecuteAsync(this DataConnection connection, string sql, CancellationToken cancellationToken, object parameters)
- public static Task<T> ExecuteAsync<T>(this DataConnection connection, string sql)
- public static Task<T> ExecuteAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken)
- public static Task<T> ExecuteAsync<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<T> ExecuteAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<T> ExecuteAsync<T>(this DataConnection connection, string sql, DataParameter parameter)
- public static Task<T> ExecuteAsync<T>(this DataConnection connection, string sql, DataParameter parameter, CancellationToken cancellationToken)
- public static Task<T> ExecuteAsync<T>(this DataConnection connection, string sql, object parameters)
- public static Task<T> ExecuteAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, object parameters)
- public static int ExecuteProc(this DataConnection connection, string sql, DataParameter[] parameters)
- public static T ExecuteProc<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<int> ExecuteProcAsync(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<int> ExecuteProcAsync(this DataConnection connection, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<T> ExecuteProcAsync<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<T> ExecuteProcAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static DataReader ExecuteReader(this DataConnection connection, string sql)
- public static DataReader ExecuteReader(this DataConnection connection, string sql, DataParameter[] parameters)
- public static DataReader ExecuteReader(this DataConnection connection, string sql, DataParameter parameter)
- public static DataReader ExecuteReader(this DataConnection connection, string sql, object parameters)
- public static DataReader ExecuteReader(this DataConnection connection, string sql, CommandType commandType, CommandBehavior commandBehavior, DataParameter[] parameters)
- public static int Merge<T>(this DataConnection dataConnection, IQueryable<T> source, Expression<Func<T, bool>> predicate, string tableName = null, string databaseName = null, string schemaName = null)
- public static int Merge<T>(this DataConnection dataConnection, Expression<Func<T, bool>> predicate, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null)
- public static int Merge<T>(this DataConnection dataConnection, bool delete, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null)
- public static int Merge<T>(this DataConnection dataConnection, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null)
- public static int Merge<T>(this ITable<T> table, IQueryable<T> source, Expression<Func<T, bool>> predicate, string tableName = null, string databaseName = null, string schemaName = null)
- public static int Merge<T>(this ITable<T> table, Expression<Func<T, bool>> predicate, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null)
- public static int Merge<T>(this ITable<T> table, bool delete, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null)
- public static int Merge<T>(this ITable<T> table, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null)
- public static Task<int> MergeAsync<T>(this DataConnection dataConnection, IQueryable<T> source, Expression<Func<T, bool>> predicate, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken cancellationToken = default)
- public static Task<int> MergeAsync<T>(this DataConnection dataConnection, Expression<Func<T, bool>> predicate, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken cancellationToken = default)
- public static Task<int> MergeAsync<T>(this DataConnection dataConnection, bool delete, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken cancellationToken = default)
- public static Task<int> MergeAsync<T>(this DataConnection dataConnection, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken cancellationToken = default)
- public static Task<int> MergeAsync<T>(this ITable<T> table, IQueryable<T> source, Expression<Func<T, bool>> predicate, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken cancellationToken = default)
- public static Task<int> MergeAsync<T>(this ITable<T> table, Expression<Func<T, bool>> predicate, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken cancellationToken = default)
- public static Task<int> MergeAsync<T>(this ITable<T> table, bool delete, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken cancellationToken = default)
- public static Task<int> MergeAsync<T>(this ITable<T> table, IEnumerable<T> source, string tableName = null, string databaseName = null, string schemaName = null, CancellationToken cancellationToken = default)
- public static IEnumerable<T> Query<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql)
- public static IEnumerable<T> Query<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, DataParameter[] parameters)
- public static IEnumerable<T> Query<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, object parameters)
- public static IEnumerable<T> Query<T>(this DataConnection connection, string sql)
- public static IEnumerable<T> Query<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static IEnumerable<T> Query<T>(this DataConnection connection, string sql, DataParameter parameter)
- public static IEnumerable<T> Query<T>(this DataConnection connection, string sql, object parameters)
- public static IEnumerable<T> Query<T>(this DataConnection connection, T template, string sql, DataParameter[] parameters)
- public static IEnumerable<T> Query<T>(this DataConnection connection, T template, string sql, object parameters)
- public static T QueryMultiple<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<T> QueryMultipleAsync<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<T> QueryMultipleAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static IEnumerable<T> QueryProc<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, DataParameter[] parameters)
- public static IEnumerable<T> QueryProc<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static T QueryProcMultiple<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<T> QueryProcMultipleAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<T> QueryProcMultipleAsync<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, CancellationToken cancellationToken)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, DataParameter[] parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, object parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, CancellationToken cancellationToken, object parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, string sql)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, string sql, DataParameter parameter)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, string sql, DataParameter parameter, CancellationToken cancellationToken)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, string sql, object parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, object parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, T template, string sql, DataParameter[] parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, T template, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, T template, string sql, object parameters)
- public static Task<T[]> QueryToArrayAsync<T>(this DataConnection connection, T template, string sql, CancellationToken cancellationToken, object parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, CancellationToken cancellationToken)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, DataParameter[] parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, object parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, Func<IDataReader, T> objectReader, string sql, object parameters, CancellationToken cancellationToken)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, string sql)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, string sql, DataParameter[] parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, string sql, DataParameter parameter)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, string sql, DataParameter parameter, CancellationToken cancellationToken)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, string sql, object parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, string sql, CancellationToken cancellationToken, object parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, T template, string sql, DataParameter[] parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, T template, string sql, CancellationToken cancellationToken, DataParameter[] parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, T template, string sql, object parameters)
- public static Task<List<T>> QueryToListAsync<T>(this DataConnection connection, T template, string sql, CancellationToken cancellationToken, object parameters)
- public static CommandInfo SetCommand(this DataConnection dataConnection, string commandText)
- public static CommandInfo SetCommand(this DataConnection dataConnection, string commandText, DataParameter[] parameters)
- public static CommandInfo SetCommand(this DataConnection dataConnection, string commandText, DataParameter parameter)
- public static CommandInfo SetCommand(this DataConnection dataConnection, string commandText, object parameters)
-
public class DataConnectionTransaction : IDisposable
-
public class DataParameter
- public DataType DataType { get; set; }
- public string DbType { get; set; }
- public ParameterDirection? Direction { get; set; }
- public bool IsArray { get; set; }
- public string Name { get; set; }
- public int? Size { get; set; }
- public object Value { get; set; }
- public DataParameter()
- public DataParameter(string name, object value)
- public DataParameter(string name, object value, DataType dataType)
- public DataParameter(string name, object value, DataType dataType, string dbType)
- public DataParameter(string name, object value, string dbType)
- public static DataParameter Binary(string name, byte[] value)
- public static DataParameter Binary(string name, Binary value)
- public static DataParameter BinaryJson(string name, string value)
- public static DataParameter BitArray(string name, BitArray value)
- public static DataParameter Blob(string name, byte[] value)
- public static DataParameter Boolean(string name, bool value)
- public static DataParameter Byte(string name, byte value)
- public static DataParameter Char(string name, char value)
- public static DataParameter Char(string name, string value)
- public static DataParameter Create(string name, char value)
- public static DataParameter Create(string name, string value)
- public static DataParameter Create(string name, byte[] value)
- public static DataParameter Create(string name, Binary value)
- public static DataParameter Create(string name, bool value)
- public static DataParameter Create(string name, sbyte value)
- public static DataParameter Create(string name, short value)
- public static DataParameter Create(string name, int value)
- public static DataParameter Create(string name, long value)
- public static DataParameter Create(string name, byte value)
- public static DataParameter Create(string name, ushort value)
- public static DataParameter Create(string name, uint value)
- public static DataParameter Create(string name, ulong value)
- public static DataParameter Create(string name, float value)
- public static DataParameter Create(string name, double value)
- public static DataParameter Create(string name, decimal value)
- public static DataParameter Create(string name, Guid value)
- public static DataParameter Create(string name, TimeSpan value)
- public static DataParameter Create(string name, DateTime value)
- public static DataParameter Create(string name, DateTimeOffset value)
- public static DataParameter Create(string name, XDocument value)
- public static DataParameter Create(string name, XmlDocument value)
- public static DataParameter Create(string name, BitArray value)
- public static DataParameter Create(string name, Dictionary<string, string> value)
- public static DataParameter Date(string name, DateTime value)
- public static DataParameter DateTime(string name, DateTime value)
- public static DataParameter DateTime2(string name, DateTime value)
- public static DataParameter DateTimeOffset(string name, DateTimeOffset value)
- public static DataParameter Decimal(string name, decimal value)
- public static DataParameter Dictionary(string name, IDictionary value)
- public static DataParameter Double(string name, double value)
- public static DataParameter Guid(string name, Guid value)
- public static DataParameter Image(string name, byte[] value)
- public static DataParameter Int16(string name, short value)
- public static DataParameter Int32(string name, int value)
- public static DataParameter Int64(string name, long value)
- public static DataParameter Json(string name, string value)
- public static DataParameter Money(string name, decimal value)
- public static DataParameter NChar(string name, char value)
- public static DataParameter NChar(string name, string value)
- public static DataParameter NText(string name, string value)
- public static DataParameter NVarChar(string name, char value)
- public static DataParameter NVarChar(string name, string value)
- public static DataParameter SByte(string name, sbyte value)
- public static DataParameter Single(string name, float value)
- public static DataParameter SmallDateTime(string name, DateTime value)
- public static DataParameter SmallMoney(string name, decimal value)
- public static DataParameter Text(string name, string value)
- public static DataParameter Time(string name, TimeSpan value)
- public static DataParameter Timestamp(string name, byte[] value)
- public static DataParameter Udt(string name, object value)
- public static DataParameter UInt16(string name, ushort value)
- public static DataParameter UInt32(string name, uint value)
- public static DataParameter UInt64(string name, ulong value)
- public static DataParameter VarBinary(string name, byte[] value)
- public static DataParameter VarBinary(string name, Binary value)
- public static DataParameter VarChar(string name, char value)
- public static DataParameter VarChar(string name, string value)
- public static DataParameter Variant(string name, object value)
- public static DataParameter VarNumeric(string name, decimal value)
- public static DataParameter Xml(string name, string value)
- public static DataParameter Xml(string name, XDocument value)
- public static DataParameter Xml(string name, XmlDocument value)
-
public class DataReader : IDisposable
-
public class DataReaderAsync : IDisposable
- public CommandInfo CommandInfo { get; set; }
- public DbDataReader Reader { get; set; }
- public DataReaderAsync()
- public void Dispose()
- public Task<T> ExecuteForEachAsync<T>()
- public Task<T> ExecuteForEachAsync<T>(CancellationToken cancellationToken)
- public Task QueryForEachAsync<T>(Func<IDataReader, T> objectReader, Action<T> action)
- public Task QueryForEachAsync<T>(Func<IDataReader, T> objectReader, Action<T> action, CancellationToken cancellationToken)
- public Task QueryForEachAsync<T>(Action<T> action)
- public Task QueryForEachAsync<T>(Action<T> action, CancellationToken cancellationToken)
- public Task QueryForEachAsync<T>(T template, Action<T> action)
- public Task QueryForEachAsync<T>(T template, Action<T> action, CancellationToken cancellationToken)
- public Task<T[]> QueryToArrayAsync<T>(Func<IDataReader, T> objectReader)
- public Task<T[]> QueryToArrayAsync<T>(Func<IDataReader, T> objectReader, CancellationToken cancellationToken)
- public Task<T[]> QueryToArrayAsync<T>()
- public Task<T[]> QueryToArrayAsync<T>(CancellationToken cancellationToken)
- public Task<T[]> QueryToArrayAsync<T>(T template)
- public Task<T[]> QueryToArrayAsync<T>(T template, CancellationToken cancellationToken)
- public Task<List<T>> QueryToListAsync<T>(Func<IDataReader, T> objectReader)
- public Task<List<T>> QueryToListAsync<T>(Func<IDataReader, T> objectReader, CancellationToken cancellationToken)
- public Task<List<T>> QueryToListAsync<T>()
- public Task<List<T>> QueryToListAsync<T>(CancellationToken cancellationToken)
- public Task<List<T>> QueryToListAsync<T>(T template)
- public Task<List<T>> QueryToListAsync<T>(T template, CancellationToken cancellationToken)
-
public class TraceInfo
-
public enum TraceInfoStep
LinqToDB.Data.DbCommandProcessor
LinqToDB.Data.RetryPolicy
LinqToDB.DataProvider
-
public class BasicBulkCopy
- public BasicBulkCopy()
- public virtual BulkCopyRowsCopied BulkCopy<T>(BulkCopyType bulkCopyType, ITable<T> table, BulkCopyOptions options, IEnumerable<T> source)
- protected Func<IDbConnection, int, IDisposable> CreateBulkCopyCreator(Type connectionType, Type bulkCopyType, Type bulkCopyOptionType)
- protected Action<object, Action<object>> CreateBulkCopySubscriber(object bulkCopy, string eventName)
- protected Func<int, string, object> CreateColumnMappingCreator(Type columnMappingType)
- protected virtual BulkCopyRowsCopied MultipleRowsCopy<T>(ITable<T> table, BulkCopyOptions options, IEnumerable<T> source)
- protected BulkCopyRowsCopied MultipleRowsCopy1<T>(ITable<T> table, BulkCopyOptions options, IEnumerable<T> source)
- protected BulkCopyRowsCopied MultipleRowsCopy1(MultipleRowsHelper helper, IEnumerable source)
- protected virtual BulkCopyRowsCopied MultipleRowsCopy2<T>(ITable<T> table, BulkCopyOptions options, IEnumerable<T> source, string from)
- protected BulkCopyRowsCopied MultipleRowsCopy2(MultipleRowsHelper helper, IEnumerable source, string from)
- protected BulkCopyRowsCopied MultipleRowsCopy3(MultipleRowsHelper helper, BulkCopyOptions options, IEnumerable source, string from)
- protected virtual BulkCopyRowsCopied ProviderSpecificCopy<T>(ITable<T> table, BulkCopyOptions options, IEnumerable<T> source)
- protected virtual BulkCopyRowsCopied RowByRowCopy<T>(ITable<T> table, BulkCopyOptions options, IEnumerable<T> source)
- protected void TraceAction(DataConnection dataConnection, Func<string> commandText, Func<int> action)
-
public class BasicMerge
- protected class ColumnInfo
- protected string ByTargetText
- protected List<ColumnInfo> Columns
- protected List<DataParameter> Parameters
- protected StringBuilder StringBuilder
- protected virtual bool IsIdentitySupported { get; }
- public BasicMerge()
- protected virtual bool BuildCommand<T>(DataConnection dataConnection, Expression<Func<T, bool>> deletePredicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName)
- protected virtual bool BuildUsing<T>(DataConnection dataConnection, IEnumerable<T> source)
- protected bool BuildUsing2<T>(DataConnection dataConnection, IEnumerable<T> source, string top, string fromDummyTable)
- protected virtual int Execute(DataConnection dataConnection)
- protected virtual Task<int> ExecuteAsync(DataConnection dataConnection, CancellationToken token)
- public virtual int Merge<T>(DataConnection dataConnection, Expression<Func<T, bool>> predicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName)
- public virtual Task<int> MergeAsync<T>(DataConnection dataConnection, Expression<Func<T, bool>> predicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName, CancellationToken token)
-
public class BasicMergeBuilder<TTarget, TSource>
- protected readonly string SourceAlias
- protected readonly string TargetAlias
- protected virtual bool BySourceOperationsSupported { get; }
- protected StringBuilder Command { get; }
- protected IDataContext DataContext { get; }
- protected virtual bool DeleteOperationSupported { get; }
- protected virtual bool EmptySourceSupported { get; }
- protected virtual string FakeSourceTable { get; }
- protected virtual string FakeSourceTableDatabase { get; }
- protected virtual string FakeSourceTableSchema { get; }
- protected virtual bool IsIdentityInsertSupported { get; }
- protected virtual int MaxOperationsCount { get; }
- protected MergeDefinition<TTarget, TSource> Merge { get; }
- protected virtual bool MergeHintsSupported { get; }
- public bool NoopCommand { get; }
- protected virtual bool OperationPredicateSupported { get; }
- public DataParameter[] Parameters { get; }
- protected string ProviderName { get; }
- protected virtual bool ProviderUsesAlternativeUpdate { get; }
- protected virtual bool SameTypeOperationsAllowed { get; }
- protected BasicSqlBuilder SqlBuilder { get; }
- protected virtual bool SupportsColumnAliasesInTableAlias { get; }
- protected virtual bool SupportsParametersInSource { get; }
- protected virtual bool SupportsSourceDirectValues { get; }
- protected virtual bool SupportsSourceSubQuery { get; }
- protected EntityDescriptor TargetDescriptor { get; }
- protected string TargetTableName { get; }
- protected virtual bool UpdateWithDeleteOperationSupported { get; }
- public BasicMergeBuilder(DataConnection dataConnection, IMergeable<TTarget, TSource> merge)
- protected virtual void AddFakeSourceTableName()
- protected void AddParameter(DataParameter parameter)
- protected virtual void AddSourceValue(ValueToSqlConverter valueConverter, ColumnDescriptor column, SqlDataType columnType, object value, bool isFirstRow, bool isLastRow)
- protected void AddSourceValueAsParameter(DataType dataType, string dbType, int? size, object value)
- protected void BuildColumnType(ColumnDescriptor column, SqlDataType columnType)
- public virtual string BuildCommand()
- protected void BuildCustomInsert(Expression<Func<TSource, TTarget>> create)
- protected void BuildCustomUpdate(Expression<Func<TTarget, TSource, TTarget>> update)
- protected void BuildDefaultInsert()
- protected void BuildDefaultUpdate()
- protected virtual void BuildDelete(Expression<Func<TTarget, TSource, bool>> predicate)
- protected virtual void BuildInsert(Expression<Func<TSource, bool>> predicate, Expression<Func<TSource, TTarget>> create)
- protected virtual void BuildMatch()
- protected virtual void BuildMergeInto()
- protected virtual void BuildOperation(Operation<TTarget, TSource> operation)
- protected virtual void BuildPreambule()
- protected void BuildPredicateByKeys(Type keyType, Expression targetKey, Expression sourceKey)
- protected void BuildPredicateByTargetAndSource(Expression<Func<TTarget, TSource, bool>> predicate)
- protected void BuildSingleTablePredicate<TTable>(Expression<Func<TTable, bool>> predicate, string tableAlias, bool isSource)
- protected virtual void BuildTerminator()
- protected virtual void BuildUpdate(Expression<Func<TTarget, TSource, bool>> predicate, Expression<Func<TTarget, TSource, TTarget>> update)
- protected virtual void BuildUpdateWithDelete(Expression<Func<TTarget, TSource, bool>> updatePredicate, Expression<Func<TTarget, TSource, TTarget>> updateExpression, Expression<Func<TTarget, TSource, bool>> deletePredicate)
- protected string GetNextParameterName()
- protected Expression<Func<TTarget, TSource, bool>> MakeDefaultMatchPredicate()
- protected virtual void OnInsertWithIdentity()
- public virtual void Validate()
-
public class BulkCopyReader : DbDataReader, IDataReader, IDataRecord, IDisposable
-
public abstract class DataProviderBase : IDataProvider
- protected static readonly int DefaultMaxRetryCount
- public readonly ConcurrentDictionary<ReaderInfo, Expression> ReaderExpressions
- public static Func<IDataProvider, IDbConnection, IDbConnection> OnConnectionCreated { get; set; }
- public abstract string ConnectionNamespace { get; }
- public abstract Type DataReaderType { get; }
- public virtual MappingSchema MappingSchema { get; }
- protected virtual int MaxRetryCount { get; }
- public string Name { get; }
- public SqlProviderFlags SqlProviderFlags { get; }
- protected DataProviderBase(string name, MappingSchema mappingSchema)
- public virtual BulkCopyRowsCopied BulkCopy<T>(ITable<T> table, BulkCopyOptions options, IEnumerable<T> source)
- public virtual Type ConvertParameterType(Type type, DbDataType dataType)
- public IDbConnection CreateConnection(string connectionString)
- protected abstract IDbConnection CreateConnectionInternal(string connectionString)
- public abstract ISqlBuilder CreateSqlBuilder(MappingSchema mappingSchema)
- public virtual void DisposeCommand(DataConnection dataConnection)
- public virtual IDisposable ExecuteScope()
- protected bool FindExpression(ReaderInfo info, out Expression expr)
- public virtual CommandBehavior GetCommandBehavior(CommandBehavior commandBehavior)
- public virtual object GetConnectionInfo(DataConnection dataConnection, string parameterName)
- protected virtual BasicMergeBuilder<TTarget, TSource> GetMergeBuilder<TTarget, TSource>(DataConnection connection, IMergeable<TTarget, TSource> merge)
- public virtual Expression GetReaderExpression(MappingSchema mappingSchema, IDataReader reader, int idx, Expression readerExpression, Type toType)
- public abstract ISchemaProvider GetSchemaProvider()
- public abstract ISqlOptimizer GetSqlOptimizer()
- public virtual void InitCommand(DataConnection dataConnection, CommandType commandType, string commandText, DataParameter[] parameters, bool withParameters)
- public abstract bool IsCompatibleConnection(IDbConnection connection)
- public virtual bool? IsDBNullAllowed(IDataReader reader, int idx)
- public virtual int Merge<T>(DataConnection dataConnection, Expression<Func<T, bool>> deletePredicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName)
- public int Merge<TTarget, TSource>(DataConnection dataConnection, IMergeable<TTarget, TSource> merge)
- public virtual Task<int> MergeAsync<T>(DataConnection dataConnection, Expression<Func<T, bool>> deletePredicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName, CancellationToken token)
- public Task<int> MergeAsync<TTarget, TSource>(DataConnection dataConnection, IMergeable<TTarget, TSource> merge, CancellationToken token)
- protected virtual string NormalizeTypeName(string typeName)
- protected void SetCharField(string dataTypeName, Expression<Func<IDataReader, int, string>> expr)
- protected void SetCharFieldToType<T>(string dataTypeName, Expression<Func<IDataReader, int, string>> expr)
- protected void SetField<TP, T>(Expression<Func<TP, int, T>> expr)
- protected void SetField<TP, T>(string dataTypeName, Expression<Func<TP, int, T>> expr)
- public virtual void SetParameter(IDbDataParameter parameter, string name, DbDataType dataType, object value)
- protected virtual void SetParameterType(IDbDataParameter parameter, DbDataType dataType)
- protected void SetProviderField<TP, T>(Expression<Func<TP, int, T>> expr)
- protected void SetProviderField<TP, T, TS>(Expression<Func<TP, int, T>> expr)
- protected void SetToType<TP, T, TF>(Expression<Func<TP, int, T>> expr)
-
public class DataTools
- public static Func<IDataReader, int, string> GetChar
- public DataTools()
- public static void ConvertCharToSql(StringBuilder stringBuilder, string startString, Action<StringBuilder, int> appendConversion, char value)
- public static void ConvertStringToSql(StringBuilder stringBuilder, string plusOperator, string startPrefix, Action<StringBuilder, int> appendConversion, string value, char[] extraEscapes)
- public static string EscapeUnterminatedBracket(string str)
-
public abstract class DynamicDataProviderBase : DataProviderBase
- protected static readonly object SyncRoot
- protected abstract string ConnectionTypeName { get; }
- protected abstract string DataReaderTypeName { get; }
- protected DynamicDataProviderBase(string name, MappingSchema mappingSchema)
- public static Expression<Func<string, IDbConnection>> CreateConnectionExpression(Type connectionType)
- protected void EnsureConnection()
- protected Action<IDbDataParameter, TResult> GetSetParameter<TResult>(Type connectionType, string parameterTypeName, string propertyName, Type dbType)
- protected Action<IDbDataParameter> GetSetParameter(Type connectionType, string parameterTypeName, string propertyName, Type dbType, string valueName)
- protected Action<IDbDataParameter> GetSetParameter(Type connectionType, string parameterTypeName, string propertyName, string dbTypeName, string valueName)
- protected Func<IDbDataParameter, bool> IsGetParameter(Type connectionType, string parameterTypeName, string propertyName, string dbTypeName, string valueName)
- protected abstract void OnConnectionTypeCreated(Type connectionType)
- protected bool SetField(Type fieldType, string dataTypeName, string methodName, bool throwException = true)
- protected void SetProviderField(Type fieldType, string methodName)
- protected bool SetProviderField(Type toType, Type fieldType, string methodName, bool throwException = true)
- protected void SetToTypeField(Type toType, string methodName)
-
public interface IDataProvider
- string ConnectionNamespace { get; }
- Type DataReaderType { get; }
- MappingSchema MappingSchema { get; }
- string Name { get; }
- SqlProviderFlags SqlProviderFlags { get; }
- BulkCopyRowsCopied BulkCopy<T>(ITable<T> table, BulkCopyOptions options, IEnumerable<T> source)
- Type ConvertParameterType(Type type, DbDataType dataType)
- IDbConnection CreateConnection(string connectionString)
- ISqlBuilder CreateSqlBuilder(MappingSchema mappingSchema)
- void DisposeCommand(DataConnection dataConnection)
- IDisposable ExecuteScope()
- CommandBehavior GetCommandBehavior(CommandBehavior commandBehavior)
- object GetConnectionInfo(DataConnection dataConnection, string parameterName)
- Expression GetReaderExpression(MappingSchema mappingSchema, IDataReader reader, int idx, Expression readerExpression, Type toType)
- ISchemaProvider GetSchemaProvider()
- ISqlOptimizer GetSqlOptimizer()
- void InitCommand(DataConnection dataConnection, CommandType commandType, string commandText, DataParameter[] parameters, bool withParameters)
- bool IsCompatibleConnection(IDbConnection connection)
- bool? IsDBNullAllowed(IDataReader reader, int idx)
- int Merge<T>(DataConnection dataConnection, Expression<Func<T, bool>> predicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName)
- int Merge<TTarget, TSource>(DataConnection dataConnection, IMergeable<TTarget, TSource> merge)
- Task<int> MergeAsync<T>(DataConnection dataConnection, Expression<Func<T, bool>> predicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName, CancellationToken token)
- Task<int> MergeAsync<TTarget, TSource>(DataConnection dataConnection, IMergeable<TTarget, TSource> merge, CancellationToken token)
- void SetParameter(IDbDataParameter parameter, string name, DbDataType dataType, object value)
-
public interface IDataProviderFactory
-
public abstract class MultipleRowsHelper
-
public class MultipleRowsHelper<T> : MultipleRowsHelper
-
public class ReaderInfo : IEquatable<ReaderInfo>
LinqToDB.DataProvider.DB2
-
public class ConnectionTypeTypeCreator<T> : TypeCreatorNoDefault<T>
-
public class DB2DataProvider : DynamicDataProviderBase
-
public enum DB2IdentifierQuoteMode
-
public class DB2LUWMappingSchema : MappingSchema
-
public class DB2MappingSchema : MappingSchema
-
public static class DB2Tools
- public static string AssemblyName
- public static bool IsCore
- public static bool AutoDetectProvider { get; set; }
- public static BulkCopyType DefaultBulkCopyType { get; set; }
- public static void AfterInitialized(Action action)
- public static DataConnection CreateDataConnection(string connectionString, DB2Version version = 0)
- public static DataConnection CreateDataConnection(IDbConnection connection, DB2Version version = 0)
- public static DataConnection CreateDataConnection(IDbTransaction transaction, DB2Version version = 0)
- public static IDataProvider GetDataProvider(DB2Version version = 0)
- public static BulkCopyRowsCopied MultipleRowsCopy<T>(DataConnection dataConnection, IEnumerable<T> source, int maxBatchSize = 1000, Action<BulkCopyRowsCopied> rowsCopiedCallback = null)
- public static BulkCopyRowsCopied ProviderSpecificBulkCopy<T>(DataConnection dataConnection, IEnumerable<T> source, int? bulkCopyTimeout = default, bool keepIdentity = false, int notifyAfter = 0, Action<BulkCopyRowsCopied> rowsCopiedCallback = null)
- public static void ResolveDB2(string path)
- public static void ResolveDB2(Assembly assembly)
-
public class DB2Types
-
public enum DB2Version
-
public class DB2zOSMappingSchema : MappingSchema
-
public class TypeCreator : TypeCreatorBase
-
public class TypeCreator<T> : TypeCreator
-
public class TypeCreator<T1, T> : TypeCreator<T1>
-
public class TypeCreator<T1, T2, T> : TypeCreator<T1, T2>
-
public abstract class TypeCreatorBase
-
public class TypeCreatorNoDefault<T> : TypeCreatorBase
LinqToDB.DataProvider.Firebird
LinqToDB.DataProvider.Informix
LinqToDB.DataProvider.MySql
-
public interface IMySqlExtensions
-
public class MySqlDataProvider : DynamicDataProviderBase
-
public static class MySqlExtensions
- public enum MatchModifier
- public static bool Match(this IMySqlExtensions ext, string search, object[] columns)
- public static bool Match(this IMySqlExtensions ext, MatchModifier modifier, string search, object[] columns)
- public static double MatchRelevance(this IMySqlExtensions ext, string search, object[] columns)
- public static double MatchRelevance(this IMySqlExtensions ext, MatchModifier modifier, string search, object[] columns)
- public static IMySqlExtensions MySql(this ISqlExtension ext)
-
public class MySqlMappingSchema : MappingSchema
-
public static class MySqlTools
LinqToDB.DataProvider.Oracle
-
public enum AlternativeBulkCopy
-
public class OracleDataProvider : DynamicDataProviderBase
-
public class OracleMappingSchema : MappingSchema
-
public class OracleSqlOptimizer : BasicSqlOptimizer
-
public static class OracleTools
- public static string AssemblyName
- public static Func<IDataReader, int, decimal> DataReaderGetDecimal
- public static AlternativeBulkCopy UseAlternativeBulkCopy
- public static BulkCopyType DefaultBulkCopyType { get; set; }
- public static string DetectedProviderName { get; }
- public static bool DontEscapeLowercaseIdentifiers { get; set; }
- public static bool IsXmlTypeSupported { get; }
- public static DataConnection CreateDataConnection(string connectionString)
- public static DataConnection CreateDataConnection(IDbConnection connection)
- public static DataConnection CreateDataConnection(IDbTransaction transaction)
- public static IDataProvider GetDataProvider()
- public static string GetXmlData<T>(MappingSchema mappingSchema, IEnumerable<T> data)
- public static BulkCopyRowsCopied MultipleRowsCopy<T>(this DataConnection dataConnection, IEnumerable<T> source, int maxBatchSize = 1000, Action<BulkCopyRowsCopied> rowsCopiedCallback = null)
- public static ITable<T> OracleXmlTable<T>(this IDataContext dataContext, IEnumerable<T> data)
- public static ITable<T> OracleXmlTable<T>(this IDataContext dataContext, string xmlData)
- public static ITable<T> OracleXmlTable<T>(this IDataContext dataContext, Func<string> xmlData)
- public static BulkCopyRowsCopied ProviderSpecificBulkCopy<T>(DataConnection dataConnection, IEnumerable<T> source, int? maxBatchSize = default, int? bulkCopyTimeout = default, int notifyAfter = 0, Action<BulkCopyRowsCopied> rowsCopiedCallback = null)
- public static void ResolveOracle(string path)
- public static void ResolveOracle(Assembly assembly)
LinqToDB.DataProvider.PostgreSQL
LinqToDB.DataProvider.SQLite
-
public interface ISQLiteExtensions
-
public class SQLiteDataProvider : DynamicDataProviderBase
-
public static class SQLiteExtensions
- public static void FTS3AutoMerge<TEntity>(this DataConnection dc, ITable<TEntity> table, int segments)
- public static void FTS3IntegrityCheck<TEntity>(this DataConnection dc, ITable<TEntity> table)
- public static byte[] FTS3MatchInfo<TEntity>(this ISQLiteExtensions ext, TEntity entity)
- public static byte[] FTS3MatchInfo<TEntity>(this ISQLiteExtensions ext, TEntity entity, string format)
- public static void FTS3Merge<TEntity>(this DataConnection dc, ITable<TEntity> table, int blocks, int segments)
- public static string FTS3Offsets<TEntity>(this ISQLiteExtensions ext, TEntity entity)
- public static void FTS3Optimize<TEntity>(this DataConnection dc, ITable<TEntity> table)
- public static void FTS3Rebuild<TEntity>(this DataConnection dc, ITable<TEntity> table)
- public static string FTS3Snippet<TEntity>(this ISQLiteExtensions ext, TEntity entity)
- public static string FTS3Snippet<TEntity>(this ISQLiteExtensions ext, TEntity entity, string startMatch)
- public static string FTS3Snippet<TEntity>(this ISQLiteExtensions ext, TEntity entity, string startMatch, string endMatch)
- public static string FTS3Snippet<TEntity>(this ISQLiteExtensions ext, TEntity entity, string startMatch, string endMatch, string ellipses)
- public static string FTS3Snippet<TEntity>(this ISQLiteExtensions ext, TEntity entity, string startMatch, string endMatch, string ellipses, int columnIndex)
- public static string FTS3Snippet<TEntity>(this ISQLiteExtensions ext, TEntity entity, string startMatch, string endMatch, string ellipses, int columnIndex, int tokensNumber)
- public static void FTS5AutoMerge<TEntity>(this DataConnection dc, ITable<TEntity> table, int value)
- public static double FTS5bm25<TEntity>(this ISQLiteExtensions ext, TEntity entity)
- public static double FTS5bm25<TEntity>(this ISQLiteExtensions ext, TEntity entity, double[] weights)
- public static void FTS5CrisisMerge<TEntity>(this DataConnection dc, ITable<TEntity> table, int value)
- public static void FTS5Delete<TEntity>(this DataConnection dc, ITable<TEntity> table, int rowid, TEntity record)
- public static void FTS5DeleteAll<TEntity>(this DataConnection dc, ITable<TEntity> table)
- public static string FTS5Highlight<TEntity>(this ISQLiteExtensions ext, TEntity entity, int columnIndex, string startMatch, string endMatch)
- public static void FTS5IntegrityCheck<TEntity>(this DataConnection dc, ITable<TEntity> table)
- public static void FTS5Merge<TEntity>(this DataConnection dc, ITable<TEntity> table, int value)
- public static void FTS5Optimize<TEntity>(this DataConnection dc, ITable<TEntity> table)
- public static void FTS5Pgsz<TEntity>(this DataConnection dc, ITable<TEntity> table, int value)
- public static void FTS5Rank<TEntity>(this DataConnection dc, ITable<TEntity> table, string function)
- public static void FTS5Rebuild<TEntity>(this DataConnection dc, ITable<TEntity> table)
- public static string FTS5Snippet<TEntity>(this ISQLiteExtensions ext, TEntity entity, int columnIndex, string startMatch, string endMatch, string ellipses, int tokensNumber)
- public static void FTS5UserMerge<TEntity>(this DataConnection dc, ITable<TEntity> table, int value)
- public static bool Match(this ISQLiteExtensions ext, object entityOrColumn, string match)
- public static IQueryable<TEntity> MatchTable<TEntity>(this ISQLiteExtensions ext, ITable<TEntity> table, string match)
- public static double? Rank<TEntity>(this ISQLiteExtensions ext, TEntity entity)
- public static int RowId<TEntity>(this ISQLiteExtensions ext, TEntity entity)
- public static ISQLiteExtensions SQLite(this ISqlExtension ext)
-
public class SQLiteMappingSchema : MappingSchema
-
public class SQLiteSqlBuilder : BasicSqlBuilder
-
public static class SQLiteTools
LinqToDB.DataProvider.SapHana
LinqToDB.DataProvider.SqlCe
LinqToDB.DataProvider.SqlServer
-
public class FreeTextTableExpressionAttribute : TableExpressionAttribute
-
public interface ISqlServerExtensions
-
public class SqlServer2000MappingSchema : MappingSchema
-
public class SqlServer2005MappingSchema : MappingSchema
-
public class SqlServer2008MappingSchema : MappingSchema
-
public class SqlServer2012MappingSchema : MappingSchema
-
public class SqlServer2017MappingSchema : MappingSchema
-
public static class SqlServerConfiguration
-
public class SqlServerDataProvider : DataProviderBase
-
public static class SqlServerExtensions
- public class FreeTextKey<TKey>
- public static bool Contains<TEntity>(this ISqlServerExtensions ext, TEntity entity, string search)
- public static bool Contains<TEntity>(this ISqlServerExtensions ext, TEntity entity, string search, object[] columns)
- public static bool ContainsProperty(this ISqlServerExtensions ext, object column, string property, string search)
- public static bool ContainsPropertyWithLanguage(this ISqlServerExtensions ext, object column, string property, string search, string language)
- public static bool ContainsPropertyWithLanguage(this ISqlServerExtensions ext, object column, string property, string search, int language)
- public static IQueryable<FreeTextKey<TKey>> ContainsTable<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string search)
- public static IQueryable<FreeTextKey<TKey>> ContainsTable<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string search, int top)
- public static IQueryable<FreeTextKey<TKey>> ContainsTable<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string search)
- public static IQueryable<FreeTextKey<TKey>> ContainsTable<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string search, int top)
- public static IQueryable<FreeTextKey<TKey>> ContainsTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string search, string language)
- public static IQueryable<FreeTextKey<TKey>> ContainsTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string search, string language, int top)
- public static IQueryable<FreeTextKey<TKey>> ContainsTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string search, int language, int top)
- public static IQueryable<FreeTextKey<TKey>> ContainsTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string search, int language)
- public static IQueryable<FreeTextKey<TKey>> ContainsTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string search, string language, int top)
- public static IQueryable<FreeTextKey<TKey>> ContainsTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string search, string language)
- public static IQueryable<FreeTextKey<TKey>> ContainsTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string search, int language, int top)
- public static IQueryable<FreeTextKey<TKey>> ContainsTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string search, int language)
- public static bool ContainsWithLanguage<TEntity>(this ISqlServerExtensions ext, TEntity entity, string search, string language)
- public static bool ContainsWithLanguage<TEntity>(this ISqlServerExtensions ext, TEntity entity, string search, int language)
- public static bool ContainsWithLanguage<TEntity>(this ISqlServerExtensions ext, TEntity entity, string search, string language, object[] columns)
- public static bool ContainsWithLanguage<TEntity>(this ISqlServerExtensions ext, TEntity entity, string search, int language, object[] columns)
- public static bool FreeText<TEntity>(this ISqlServerExtensions ext, TEntity entity, string term)
- public static bool FreeText<TEntity>(this ISqlServerExtensions ext, TEntity entity, string term, object[] columns)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTable<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string term)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTable<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string term, int top)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTable<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string term)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTable<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string term, int top)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string term, string language)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string term, string language, int top)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string term, int language, int top)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, string term, int language)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string term, string language)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string term, string language, int top)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string term, int language, int top)
- public static IQueryable<FreeTextKey<TKey>> FreeTextTableWithLanguage<TTable, TKey>(this ISqlServerExtensions ext, ITable<TTable> table, Expression<Func<TTable, object>> columns, string term, int language)
- public static bool FreeTextWithLanguage<TEntity>(this ISqlServerExtensions ext, TEntity entity, string term, string language)
- public static bool FreeTextWithLanguage<TEntity>(this ISqlServerExtensions ext, TEntity entity, string term, int language)
- public static bool FreeTextWithLanguage<TEntity>(this ISqlServerExtensions ext, TEntity entity, string term, string language, object[] columns)
- public static bool FreeTextWithLanguage<TEntity>(this ISqlServerExtensions ext, TEntity entity, string term, int language, object[] columns)
- public static ISqlServerExtensions SqlServer(this ISqlExtension ext)
-
public class SqlServerMappingSchema : MappingSchema
-
public class SqlServerRetryPolicy : RetryPolicyBase
-
public static class SqlServerTools
- public static class Sql
- public static Func<IDataReader, int, decimal> DataReaderGetDecimal
- public static Func<IDataReader, int, decimal> DataReaderGetMoney
- public static bool AutoDetectProvider { get; set; }
- public static BulkCopyType DefaultBulkCopyType { get; set; }
- public static void AddUdtType(Type type, string udtName)
- public static void AddUdtType<T>(string udtName, T nullValue, DataType dataType = 0)
- public static DataConnection CreateDataConnection(string connectionString, SqlServerVersion version = 2)
- public static DataConnection CreateDataConnection(IDbConnection connection, SqlServerVersion version = 2)
- public static DataConnection CreateDataConnection(IDbTransaction transaction, SqlServerVersion version = 2)
- public static IDataProvider GetDataProvider(SqlServerVersion version = 2)
- public static BulkCopyRowsCopied ProviderSpecificBulkCopy<T>(DataConnection dataConnection, IEnumerable<T> source, int? maxBatchSize = default, int? bulkCopyTimeout = default, bool keepIdentity = false, bool checkConstraints = false, int notifyAfter = 0, Action<BulkCopyRowsCopied> rowsCopiedCallback = null)
- public static void ResolveSqlTypes(string path)
- public static void ResolveSqlTypes(Assembly assembly)
- public static void SetIdentityInsert<T>(this DataConnection dataConnection, ITable<T> table, bool isOn)
- public static void SetSqlTypes(Type sqlHierarchyIdType, Type sqlGeographyType, Type sqlGeometryType)
-
public class SqlServerTransientExceptionDetector
-
public enum SqlServerVersion
LinqToDB.DataProvider.Sybase
LinqToDB.Expressions
-
public class DefaultValueExpression : Expression
-
public class ExpressionGenerator
- public Expression ResultExpression { get; }
- public ExpressionGenerator(TypeMapper mapper)
- public ExpressionGenerator()
- public static Expression Build(Action<ExpressionGenerator> buildFunc, TypeMapper typeMapper = null)
- public Expression AddExpression(Expression expression)
- public Expression Assign(Expression left, Expression right)
- public ParameterExpression AssignToVariable(Expression expression, string name = null)
- public Expression Build()
- public ParameterExpression DeclareVariable(Type type, string name = null)
- public Expression IfThen(Expression test, Expression ifTrue)
- public Expression IfThenElse(Expression test, Expression ifTrue, Expression ifFalse)
- public Expression MapExpression<TR>(Expression<Func<TR>> func)
- public Expression MapExpression<T, TR>(Expression<Func<T, TR>> func, Expression p)
- public Expression MapExpression<T1, T2, TR>(Expression<Func<T1, T2, TR>> func, Expression p1, Expression p2)
- public Expression MapExpression<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>> func, Expression p1, Expression p2, Expression p3)
- public Expression MapExpression<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>> func, Expression p1, Expression p2, Expression p3, Expression p4)
- public Expression MapExpression<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>> func, Expression p1, Expression p2, Expression p3, Expression p4, Expression p5)
- public MemberExpression MemberAccess<T>(Expression<Func<T, object>> memberExpression, Expression obj)
- public Expression Throw(Expression expression)
- public Expression TryCatch(Expression body, CatchBlock[] catchBlocks)
-
public static class Extensions
- public static Expression Find(this Expression expr, Expression exprToFind)
- public static Expression Find(this Expression expr, Func<Expression, bool> func)
- public static Expression GetBody(this LambdaExpression lambda, Expression exprToReplaceParameter)
- public static Expression GetBody(this LambdaExpression lambda, Expression exprToReplaceParameter1, Expression exprToReplaceParameter2)
- public static Expression GetBody(this LambdaExpression lambda, Expression exprToReplaceParameter1, Expression exprToReplaceParameter2, Expression exprToReplaceParameter3)
- public static int GetCount(this Expression expr, Func<Expression, bool> func)
- public static string GetDebugView(this Expression expression)
- public static Expression Transform(this Expression expr, Func<Expression, Expression> func)
- public static Expression Transform(this Expression expr, Func<Expression, TransformInfo> func)
- public static void Visit(this Expression expr, Action<Expression> func)
- public static void Visit(this Expression expr, Func<Expression, bool> func)
-
public interface IGenericInfoProvider
-
public static class MemberHelper
-
public class SqlQueryDependentAttribute : Attribute
-
public struct TransformInfo
-
public sealed class TypeMapper
- public class MemberBuilder<T, TV>
- public class TypeBuilder<T>
- public Type[] Types { get; }
- public TypeMapper(Type[] types)
- public object Evaluate<T>(object instance, Expression<Func<T, object>> func)
- public object Evaluate<T>(T instance, Expression<Func<T, object>> func) where T : TypeWrapper
- public Type FindReplacement(Type type)
- public Expression MapExpression<TR>(Expression<Func<TR>> func)
- public Expression MapExpression<T, TR>(Expression<Func<T, TR>> func, Expression p)
- public Expression MapExpression<T1, T2, TR>(Expression<Func<T1, T2, TR>> func, Expression p1, Expression p2)
- public Expression MapExpression<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>> func, Expression p1, Expression p2, Expression p3)
- public Expression MapExpression<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>> func, Expression p1, Expression p2, Expression p3, Expression p4)
- public Expression MapExpression<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>> func, Expression p1, Expression p2, Expression p3, Expression p4, Expression p5)
- public LambdaExpression MapLambda<T, TR>(Expression<Func<T, TR>> func)
- public LambdaExpression MapLambda<T1, T2, TR>(Expression<Func<T1, T2, TR>> func)
- public LambdaExpression MapLambda<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>> func)
- public LambdaExpression MapLambda<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>> func)
- public LambdaExpression MapLambda<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>> func)
- public LambdaExpression MapSetter<T>(Expression<Func<T, object>> propExpression, Expression<Func<object>> valueExpression)
- public LambdaExpression MapSetterValue<T, TV>(Expression<Func<T, TV>> propExpression, TV value)
- public MemberExpression MemberAccess<T>(Expression<Func<T, object>> memberExpression, Expression obj)
- public void SetValue<T>(object instance, Expression<Func<T, object>> propExpression, object value)
- public void SetValue<T, TV>(object instance, Expression<Func<T, TV>> propExpression, TV value)
- public Expression Throw<TR>(Expression<Func<TR>> newExpr)
- public Expression Throw<T1, TR>(Expression<Func<T1, TR>> newExpr, Expression p)
- public Expression Throw<T1, T2, TR>(Expression<Func<T1, T2, TR>> newExpr, Expression p1, Expression p2)
- public Expression Throw<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>> newExpr, Expression p1, Expression p2, Expression p3)
- public TypeBuilder<T> Type<T>()
- public TR Wrap<T, TR>(T instance, Expression<Func<T, TR>> func) where T : TypeWrapper
- public TR Wrap<TR>(object instance) where TR : TypeWrapper
-
public class TypeWrapper
-
public static class TypeWrapperExtensions
-
public class WrapperAttribute : Attribute
LinqToDB.Extensions
-
public static class ReflectionExtensions
- public static Type AsNullable(this Type type)
- public static Assembly AssemblyEx(this Type type)
- public static Type BaseTypeEx(this Type type)
- public static bool CanConvertTo(this Type fromType, Type toType)
- public static bool EqualsTo(this MemberInfo member1, MemberInfo member2, Type declaringType = null)
- public static T[] GetAttributes<T>(this Type type) where T : Attribute
- public static ConstructorInfo GetConstructorEx(this Type type, Type[] parameterTypes)
- public static ConstructorInfo[] GetConstructorsEx(this Type type)
- public static object[] GetCustomAttributesEx(this Type type, Type attributeType, bool inherit)
- public static object[] GetCustomAttributesEx(this Type type, bool inherit)
- public static object[] GetCustomAttributesEx(this MemberInfo memberInfo, Type attributeType, bool inherit)
- public static object[] GetCustomAttributesEx(this MemberInfo memberInfo, bool inherit)
- public static object[] GetCustomAttributesEx(this ParameterInfo parameterInfo, bool inherit)
- public static ConstructorInfo GetDefaultConstructorEx(this Type type)
- public static object GetDefaultValue(this Type type)
- public static IEnumerable<Type> GetDefiningTypes(this Type child, MemberInfo member)
- public static EventInfo GetEventEx(this Type type, string eventName)
- public static FieldInfo GetFieldEx(this Type type, string propertyName)
- public static FieldInfo[] GetFieldsEx(this Type type)
- public static T GetFirstAttribute<T>(this Type type) where T : Attribute
- public static Type[] GetGenericArguments(this Type type, Type baseType)
- public static Type[] GetGenericArgumentsEx(this Type type)
- public static Type GetGenericType(this Type genericType, Type type)
- public static MethodInfo GetGetMethodEx(this PropertyInfo propertyInfo, bool nonPublic)
- public static MethodInfo GetGetMethodEx(this PropertyInfo propertyInfo)
- public static MemberInfo[] GetInstanceMemberEx(this Type type, string name)
- public static InterfaceMapping GetInterfaceMapEx(this Type type, Type interfaceType)
- public static Type[] GetInterfacesEx(this Type type)
- public static Type GetItemType(this Type type)
- public static Type GetListItemType(this IEnumerable list)
- public static Type GetListItemType(this Type listType)
- public static MemberInfo GetMemberEx(this Type type, MemberInfo memberInfo)
- public static Type GetMemberType(this MemberInfo memberInfo)
- public static MethodInfo GetMethodEx(this Type type, string name, Type[] types)
- public static MethodInfo GetMethodEx(this Type type, string name)
- public static MethodInfo[] GetMethodsEx(this Type type)
- public static PropertyInfo[] GetNonPublicPropertiesEx(this Type type)
- public static PropertyInfo[] GetPropertiesEx(this Type type)
- public static PropertyInfo[] GetPropertiesEx(this Type type, BindingFlags flags)
- public static PropertyInfo GetPropertyEx(this Type type, string propertyName)
- public static PropertyInfo GetPropertyInfo(this MethodInfo method)
- public static MemberInfo[] GetPublicInstanceMembersEx(this Type type)
- public static MethodInfo GetPublicInstanceMethodEx(this Type type, string name, Type[] types)
- public static MemberInfo[] GetPublicInstanceValueMembers(this Type type)
- public static MemberInfo[] GetPublicMemberEx(this Type type, string name)
- public static MethodInfo GetSetMethodEx(this PropertyInfo propertyInfo, bool nonPublic)
- public static MethodInfo GetSetMethodEx(this PropertyInfo propertyInfo)
- public static MemberInfo[] GetStaticMembersEx(this Type type, string name)
- public static TypeCode GetTypeCodeEx(this Type type)
- public static bool IsAbstractEx(this Type type)
- public static bool IsAnonymous(this Type type)
- public static bool IsAssignableFromEx(this Type type, Type c)
- public static bool IsClassEx(this Type type)
- public static bool IsDynamicColumnPropertyEx(this MemberInfo memberInfo)
- public static bool IsEnumEx(this Type type)
- public static bool IsFieldEx(this MemberInfo memberInfo)
- public static bool IsFloatType(this Type type)
- public static bool IsGenericEnumerableType(this Type type)
- public static bool IsGenericTypeDefinitionEx(this Type type)
- public static bool IsGenericTypeEx(this Type type)
- public static bool IsIntegerType(this Type type)
- public static bool IsInterfaceEx(this Type type)
- public static bool IsMethodEx(this MemberInfo memberInfo)
- public static bool IsNullable(this Type type)
- public static bool IsNullableHasValueMember(this MemberInfo member)
- public static bool IsNullableValueMember(this MemberInfo member)
- public static bool IsPrimitiveEx(this Type type)
- public static bool IsPropertyEx(this MemberInfo memberInfo)
- public static bool IsPublicEx(this Type type)
- public static bool IsSameOrParentOf(this Type parent, Type child)
- public static bool IsScalar(this Type type, bool checkArrayElementType = true)
- public static bool IsSqlPropertyMethodEx(this MemberInfo memberInfo)
- public static bool IsSubclassOfEx(this Type type, Type c)
- public static bool IsValueTypeEx(this Type type)
- public static Type ReflectedTypeEx(this MemberInfo memberInfo)
- public static Type ToNullableUnderlying(this Type type)
- public static Type ToUnderlying(this Type type)
LinqToDB.Linq
-
public static class Expressions
- public class LazyExpressionInfo : IExpressionInfo
- public static T AccessInt<T>(T value)
- public static T AccessRound<T>(T value, int? precision)
- public static string AltStuff(string str, int? startLocation, int? length, string value)
- public static LambdaExpression ConvertBinary(MappingSchema mappingSchema, BinaryExpression binaryExpression)
- public static LambdaExpression ConvertMember(MappingSchema mappingSchema, Type objectType, MemberInfo mi)
- public static int? ConvertToCaseCompareTo(string str, string value)
- public static DateTime? DateAdd(DateParts part, int? number, int? days)
- public static decimal DecimalPI()
- public static double DoublePI()
- public static string Hex(Guid? guid)
- public static LambdaExpression L<TR>(Expression<Func<TR>> func)
- public static LambdaExpression L<T1, TR>(Expression<Func<T1, TR>> func)
- public static LambdaExpression L<T1, T2, TR>(Expression<Func<T1, T2, TR>> func)
- public static LambdaExpression L<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>> func)
- public static LambdaExpression L<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>> func)
- public static LambdaExpression L<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>> func)
- public static LambdaExpression L<T1, T2, T3, T4, T5, T6, TR>(Expression<Func<T1, T2, T3, T4, T5, T6, TR>> func)
- public static MemberInfo M<T>(Expression<Func<T, object>> func)
- public static MemberInfo M<T>(Expression<Func<T>> func)
- public static DateTime? MakeDateTime2(int? year, int? month, int? day)
- public static void MapBinary(string providerName, ExpressionType nodeType, Type leftType, Type rightType, LambdaExpression expression)
- public static void MapBinary(ExpressionType nodeType, Type leftType, Type rightType, LambdaExpression expression)
- public static void MapBinary<TLeft, TRight, TR>(string providerName, Expression<Func<TLeft, TRight, TR>> binaryExpression, Expression<Func<TLeft, TRight, TR>> expression)
- public static void MapBinary<TLeft, TRight, TR>(Expression<Func<TLeft, TRight, TR>> binaryExpression, Expression<Func<TLeft, TRight, TR>> expression)
- public static void MapMember(MemberInfo memberInfo, LambdaExpression expression)
- public static void MapMember(MemberInfo memberInfo, IExpressionInfo expressionInfo)
- public static void MapMember(string providerName, MemberInfo memberInfo, LambdaExpression expression)
- public static void MapMember(string providerName, MemberInfo memberInfo, IExpressionInfo expressionInfo)
- public static void MapMember(Expression<Func<object>> memberInfo, LambdaExpression expression)
- public static void MapMember(string providerName, Expression<Func<object>> memberInfo, LambdaExpression expression)
- public static void MapMember<T>(Expression<Func<T, object>> memberInfo, LambdaExpression expression)
- public static void MapMember<T>(string providerName, Expression<Func<T, object>> memberInfo, LambdaExpression expression)
- public static void MapMember<TR>(string providerName, Expression<Func<TR>> memberInfo, Expression<Func<TR>> expression)
- public static void MapMember<TR>(Expression<Func<TR>> memberInfo, Expression<Func<TR>> expression)
- public static void MapMember<T1, TR>(string providerName, Expression<Func<T1, TR>> memberInfo, Expression<Func<T1, TR>> expression)
- public static void MapMember<T1, TR>(Expression<Func<T1, TR>> memberInfo, Expression<Func<T1, TR>> expression)
- public static void MapMember<T1, T2, TR>(string providerName, Expression<Func<T1, T2, TR>> memberInfo, Expression<Func<T1, T2, TR>> expression)
- public static void MapMember<T1, T2, TR>(Expression<Func<T1, T2, TR>> memberInfo, Expression<Func<T1, T2, TR>> expression)
- public static void MapMember<T1, T2, T3, TR>(string providerName, Expression<Func<T1, T2, T3, TR>> memberInfo, Expression<Func<T1, T2, T3, TR>> expression)
- public static void MapMember<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>> memberInfo, Expression<Func<T1, T2, T3, TR>> expression)
- public static void MapMember<T1, T2, T3, T4, TR>(string providerName, Expression<Func<T1, T2, T3, T4, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, TR>> expression)
- public static void MapMember<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, TR>> expression)
- public static void MapMember<T1, T2, T3, T4, T5, TR>(string providerName, Expression<Func<T1, T2, T3, T4, T5, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, T5, TR>> expression)
- public static void MapMember<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, T5, TR>> expression)
- public static void MapMember(string providerName, Type objectType, MemberInfo memberInfo, LambdaExpression expression)
- public static void MapMember(string providerName, Type objectType, MemberInfo memberInfo, IExpressionInfo expressionInfo)
- public static void MapMember<TR>(string providerName, Type objectType, Expression<Func<TR>> memberInfo, Expression<Func<TR>> expression)
- public static void MapMember<TR>(Type objectType, Expression<Func<TR>> memberInfo, Expression<Func<TR>> expression)
- public static void MapMember<T1, TR>(string providerName, Type objectType, Expression<Func<T1, TR>> memberInfo, Expression<Func<T1, TR>> expression)
- public static void MapMember<T1, TR>(Type objectType, Expression<Func<T1, TR>> memberInfo, Expression<Func<T1, TR>> expression)
- public static void MapMember<T1, T2, TR>(string providerName, Type objectType, Expression<Func<T1, T2, TR>> memberInfo, Expression<Func<T1, T2, TR>> expression)
- public static void MapMember<T1, T2, TR>(Type objectType, Expression<Func<T1, T2, TR>> memberInfo, Expression<Func<T1, T2, TR>> expression)
- public static void MapMember<T1, T2, T3, TR>(string providerName, Type objectType, Expression<Func<T1, T2, T3, TR>> memberInfo, Expression<Func<T1, T2, T3, TR>> expression)
- public static void MapMember<T1, T2, T3, TR>(Type objectType, Expression<Func<T1, T2, T3, TR>> memberInfo, Expression<Func<T1, T2, T3, TR>> expression)
- public static void MapMember<T1, T2, T3, T4, TR>(string providerName, Type objectType, Expression<Func<T1, T2, T3, T4, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, TR>> expression)
- public static void MapMember<T1, T2, T3, T4, TR>(Type objectType, Expression<Func<T1, T2, T3, T4, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, TR>> expression)
- public static void MapMember<T1, T2, T3, T4, T5, TR>(string providerName, Type objectType, Expression<Func<T1, T2, T3, T4, T5, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, T5, TR>> expression)
- public static void MapMember<T1, T2, T3, T4, T5, TR>(Type objectType, Expression<Func<T1, T2, T3, T4, T5, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, T5, TR>> expression)
- public static DateTime? Mdy(int? month, int? day, int? year)
- public static LazyExpressionInfo N(Func<LambdaExpression> func)
- public static string Replicate(string str, int? count)
- public static string Replicate(char? ch, int? count)
- public static decimal? Round(decimal? value, int precision, int mode)
- public static double? Round(double? value, int precision, int mode)
- public static void SetGenericInfoProvider(Type type)
- public static string TrimLeft(string str, char[] trimChars)
- public static string TrimRight(string str, char[] trimChars)
- public static string VarChar(object obj, int? size)
-
public interface IDataReaderAsync : IDisposable
-
public interface IExpressionInfo
-
public interface IExpressionPreprocessor
-
public interface IExpressionQuery
-
public interface IExpressionQuery<T> : IOrderedQueryable<T>, IEnumerable<T>, IEnumerable, IOrderedQueryable, IQueryable, IQueryable<T>, IQueryProviderAsync, IQueryProvider, IExpressionQuery
-
public static class Internals
-
public interface IQueryContext
-
public interface IQueryRunner : IDisposable
-
public interface ISelectInsertable<TSource, TTarget>
-
public interface IUpdatable<T>
-
public interface IValueInsertable<T>
-
public class LinqException : Exception
-
public static class MethodHelper
- public static MethodInfo GetMethodInfo(this Delegate del)
- public static MethodInfo GetMethodInfo<T1, T2>(Func<T1, T2> f, T1 unused1)
- public static MethodInfo GetMethodInfo<T1, T2, T3>(Func<T1, T2, T3> f, T1 unused1, T2 unused2)
- public static MethodInfo GetMethodInfo<T1, T2, T3, T4>(Func<T1, T2, T3, T4> f, T1 unused1, T2 unused2, T3 unused3)
- public static MethodInfo GetMethodInfo<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4)
- public static MethodInfo GetMethodInfo<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4, T5 unused5)
- public static MethodInfo GetMethodInfo<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7> f, T1 unused1, T2 unused2, T3 unused3, T4 unused4, T5 unused5, T6 unused6)
-
public class NoLinqCache : IDisposable
-
public abstract class Query
LinqToDB.Linq.Builder
LinqToDB.Mapping
-
public class AssociationAttribute : Attribute
-
public class AssociationDescriptor
- public string AliasName { get; set; }
- public bool CanBeNull { get; set; }
- public string ExpressionPredicate { get; set; }
- public Expression ExpressionQuery { get; set; }
- public string ExpressionQueryMethod { get; set; }
- public MemberInfo MemberInfo { get; set; }
- public string[] OtherKey { get; set; }
- public Expression Predicate { get; set; }
- public string Storage { get; set; }
- public string[] ThisKey { get; set; }
- public AssociationDescriptor(Type type, MemberInfo memberInfo, string[] thisKey, string[] otherKey, string expressionPredicate, Expression predicate, string expressionQueryMethod, Expression expressionQuery, string storage, bool canBeNull, string aliasName)
- public static string[] ParseKeys(string keys)
- public LambdaExpression GetPredicate(Type parentType, Type objectType)
- public LambdaExpression GetQueryMethod(Type parentType, Type objectType)
-
public class ColumnAliasAttribute : Attribute
-
public class ColumnAttribute : Attribute
-
public class ColumnDescriptor : IColumnChangeDescriptor
-
public class DataTypeAttribute : Attribute
-
public class DynamicColumnAccessorAttribute : Attribute, IConfigurationProvider
-
public class DynamicColumnInfo : PropertyInfo, IEquatable<DynamicColumnInfo>
-
public class DynamicColumnsStoreAttribute : Attribute, IConfigurationProvider
-
public class EntityDescriptor : IEntityChangeDescriptor
-
public class EntityMappingBuilder<T>
- public string Configuration { get; }
- public EntityMappingBuilder(FluentMappingBuilder builder, string configuration)
- public PropertyMappingBuilder<T> Association<S, ID1, ID2>(Expression<Func<T, S>> prop, Expression<Func<T, ID1>> thisKey, Expression<Func<S, ID2>> otherKey, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<S, ID1, ID2>(Expression<Func<T, IEnumerable<S>>> prop, Expression<Func<T, ID1>> thisKey, Expression<Func<S, ID2>> otherKey, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<TOther>(Expression<Func<T, IEnumerable<TOther>>> prop, Expression<Func<T, TOther, bool>> predicate, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<TOther>(Expression<Func<T, TOther>> prop, Expression<Func<T, TOther, bool>> predicate, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<TOther>(Expression<Func<T, IEnumerable<TOther>>> prop, Expression<Func<T, IDataContext, IQueryable<TOther>>> queryExpression, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<TOther>(Expression<Func<T, TOther>> prop, Expression<Func<T, IDataContext, IQueryable<TOther>>> queryExpression, bool canBeNull = true)
- public EntityMappingBuilder<T> DynamicColumnsStore(Expression<Func<T, object>> func)
- public EntityMappingBuilder<T> DynamicPropertyAccessors(Expression<Func<T, string, object, object>> getter, Expression<Action<T, string, object>> setter)
- public EntityMappingBuilder<TE> Entity<TE>(string configuration = null)
- public TA[] GetAttributes<TA>() where TA : Attribute
- public TA[] GetAttributes<TA>(Type type) where TA : Attribute
- public TA[] GetAttributes<TA>(MemberInfo memberInfo) where TA : Attribute
- public TA[] GetAttributes<TA>(Func<TA, string> configGetter) where TA : Attribute
- public TA[] GetAttributes<TA>(Type type, Func<TA, string> configGetter) where TA : Attribute
- public TA[] GetAttributes<TA>(MemberInfo memberInfo, Func<TA, string> configGetter) where TA : Attribute
- public EntityMappingBuilder<T> HasAttribute(Attribute attribute)
- public EntityMappingBuilder<T> HasAttribute(MemberInfo memberInfo, Attribute attribute)
- public EntityMappingBuilder<T> HasAttribute(LambdaExpression func, Attribute attribute)
- public EntityMappingBuilder<T> HasAttribute(Expression<Func<T, object>> func, Attribute attribute)
- public EntityMappingBuilder<T> HasColumn(Expression<Func<T, object>> func, int order = -1)
- public EntityMappingBuilder<T> HasDatabaseName(string databaseName)
- public EntityMappingBuilder<T> HasIdentity(Expression<Func<T, object>> func)
- public EntityMappingBuilder<T> HasPrimaryKey(Expression<Func<T, object>> func, int order = -1)
- public EntityMappingBuilder<T> HasSchemaName(string schemaName)
- public EntityMappingBuilder<T> HasSkipValuesOnInsert(Expression<Func<T, object>> func, object[] values)
- public EntityMappingBuilder<T> HasSkipValuesOnUpdate(Expression<Func<T, object>> func, object[] values)
- public EntityMappingBuilder<T> HasTableName(string tableName)
- public EntityMappingBuilder<T> Ignore(Expression<Func<T, object>> func, int order = -1)
- public EntityMappingBuilder<T> Inheritance<TS>(Expression<Func<T, TS>> key, TS value, Type type, bool isDefault = false)
- public EntityMappingBuilder<T> IsColumnNotRequired()
- public EntityMappingBuilder<T> IsColumnRequired()
- public PropertyMappingBuilder<T> Member(Expression<Func<T, object>> func)
- public PropertyMappingBuilder<T> Property(Expression<Func<T, object>> func)
-
public class FluentMappingBuilder
-
public interface IColumnChangeDescriptor
-
public class IdentityAttribute : Attribute
-
public interface IEntityChangeDescriptor
-
public class InheritanceMapping
-
public class InheritanceMappingAttribute : Attribute
-
public class MappingSchema
- public static MappingSchema Default
- public StringComparer ColumnNameComparer { get; set; }
- public string ConfigurationID { get; }
- public string[] ConfigurationList { get; }
- public Action<MappingSchema, IEntityChangeDescriptor> EntityDescriptorCreatedCallback { get; set; }
- public IMetadataReader MetadataReader { get; set; }
- public ValueToSqlConverter ValueToSqlConverter { get; }
- public MappingSchema()
- public MappingSchema(MappingSchema[] schemas)
- public MappingSchema(string configuration)
- public MappingSchema(string configuration, MappingSchema[] schemas)
- public static void ClearCache()
- public void AddMetadataReader(IMetadataReader reader)
- public void AddScalarType(Type type, object defaultValue, DataType dataType = 0)
- public void AddScalarType(Type type, object defaultValue, bool canBeNull, DataType dataType = 0)
- public void AddScalarType(Type type, DataType dataType = 0)
- public void AddScalarType(Type type, SqlDataType dataType)
- public object ChangeType(object value, Type conversionType)
- public T ChangeTypeTo<T>(object value)
- public object EnumToValue(Enum value)
- public T GetAttribute<T>(Type type, bool inherit = true) where T : Attribute
- public T GetAttribute<T>(Type type, MemberInfo memberInfo, bool inherit = true) where T : Attribute
- public T GetAttribute<T>(Type type, Func<T, string> configGetter, bool inherit = true) where T : Attribute
- public T GetAttribute<T>(Type type, MemberInfo memberInfo, Func<T, string> configGetter, bool inherit = true) where T : Attribute
- public T[] GetAttributes<T>(Type type, bool inherit = true) where T : Attribute
- public T[] GetAttributes<T>(Type type, MemberInfo memberInfo, bool inherit = true) where T : Attribute
- public T[] GetAttributes<T>(Type type, Func<T, string> configGetter, bool inherit = true, bool exactForConfiguration = false) where T : Attribute
- public T[] GetAttributes<T>(Type type, MemberInfo memberInfo, Func<T, string> configGetter, bool inherit = true, bool exactForConfiguration = false) where T : Attribute
- public bool GetCanBeNull(Type type)
- public Func<TFrom, TTo> GetConverter<TFrom, TTo>()
- public Expression<Func<TFrom, TTo>> GetConvertExpression<TFrom, TTo>(bool checkNull = true, bool createDefault = true)
- public LambdaExpression GetConvertExpression(Type from, Type to, bool checkNull = true, bool createDefault = true)
- public LambdaExpression GetConvertExpression(DbDataType from, DbDataType to, bool checkNull = true, bool createDefault = true)
- public SqlDataType GetDataType(Type type)
- public Type (Type enumType)
- public object GetDefaultValue(Type type)
- public Type[] GetDefinedTypes()
- public MemberInfo[] GetDynamicColumns(Type type)
- public Type[] GetEntites()
- public EntityDescriptor GetEntityDescriptor(Type type)
- public FluentMappingBuilder GetFluentMappingBuilder()
- public virtual MapValue[] GetMapValues(Type type)
- public SqlDataType GetUnderlyingDataType(Type type, ref bool canBeNull)
- public void InitGenericConvertProvider<T>()
- public bool InitGenericConvertProvider(Type[] types)
- public bool IsScalarType(Type type)
- public void SetCanBeNull(Type type, bool value)
- public void SetConverter<TFrom, TTo>(Func<TFrom, TTo> func)
- public void SetConverter<TFrom, TTo>(Func<TFrom, TTo> func, DbDataType from, DbDataType to)
- public void SetConvertExpression(Type fromType, Type toType, LambdaExpression expr, bool addNullCheck = true)
- public void SetConvertExpression(DbDataType fromType, DbDataType toType, LambdaExpression expr, bool addNullCheck = true)
- public void SetConvertExpression<TFrom, TTo>(Expression<Func<TFrom, TTo>> expr, bool addNullCheck = true)
- public void SetConvertExpression<TFrom, TTo>(Expression<Func<TFrom, TTo>> checkNullExpr, Expression<Func<TFrom, TTo>> expr)
- public void SetCultureInfo(CultureInfo info)
- public void SetDataType(Type type, DataType dataType)
- public void SetDataType(Type type, SqlDataType dataType)
- public void (Type enumType, Type defaultFromType)
- public void SetDefaultValue(Type type, object value)
- public void SetGenericConvertProvider(Type type)
- public void SetScalarType(Type type, bool isScalarType = true)
- public void SetValueToSqlConverter(Type type, Action<StringBuilder, SqlDataType, object> converter)
- public virtual LambdaExpression TryGetConvertExpression(Type from, Type to)
-
public class MapValue
-
public class MapValueAttribute : Attribute
-
public class NotColumnAttribute : ColumnAttribute
-
public class NotNullAttribute : NullableAttribute
-
public class NullableAttribute : Attribute
-
public class PrimaryKeyAttribute : Attribute
-
public class PropertyMappingBuilder<T>
- public PropertyMappingBuilder(EntityMappingBuilder<T> entity, Expression<Func<T, object>> memberGetter)
- public PropertyMappingBuilder<T> Association<S, ID1, ID2>(Expression<Func<T, S>> prop, Expression<Func<T, ID1>> thisKey, Expression<Func<S, ID2>> otherKey, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<S, ID1, ID2>(Expression<Func<T, IEnumerable<S>>> prop, Expression<Func<T, ID1>> thisKey, Expression<Func<S, ID2>> otherKey, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<TOther>(Expression<Func<T, IEnumerable<TOther>>> prop, Expression<Func<T, TOther, bool>> predicate, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<TOther>(Expression<Func<T, TOther>> prop, Expression<Func<T, TOther, bool>> predicate, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<TOther>(Expression<Func<T, IEnumerable<TOther>>> prop, Expression<Func<T, IDataContext, IQueryable<TOther>>> queryExpression, bool canBeNull = true)
- public PropertyMappingBuilder<T> Association<TOther>(Expression<Func<T, TOther>> prop, Expression<Func<T, IDataContext, IQueryable<TOther>>> queryExpression, bool canBeNull = true)
- public EntityMappingBuilder<TE> Entity<TE>(string configuration = null)
- public PropertyMappingBuilder<T> HasAttribute(Attribute attribute)
- public PropertyMappingBuilder<T> HasColumnName(string columnName)
- public PropertyMappingBuilder<T> HasCreateFormat(string format)
- public PropertyMappingBuilder<T> HasDataType(DataType dataType)
- public PropertyMappingBuilder<T> HasDbType(string dbType)
- public PropertyMappingBuilder<T> HasLength(int length)
- public PropertyMappingBuilder<T> HasOrder(int order)
- public PropertyMappingBuilder<T> HasPrecision(int precision)
- public PropertyMappingBuilder<T> HasScale(int scale)
- public PropertyMappingBuilder<T> HasSkipOnInsert(bool skipOnInsert = true)
- public PropertyMappingBuilder<T> HasSkipOnUpdate(bool skipOnUpdate = true)
- public PropertyMappingBuilder<T> HasStorage(string storage)
- public PropertyMappingBuilder<T> IsAlias(Expression<Func<T, object>> aliasMember)
- public PropertyMappingBuilder<T> IsAlias(string aliasMember)
- public PropertyMappingBuilder<T> IsColumn()
- public PropertyMappingBuilder<T> IsDiscriminator(bool isDiscriminator = true)
- public PropertyMappingBuilder<T> IsExpression<TR>(Expression<Func<T, TR>> expression, bool isColumn = false, string alias = null)
- public PropertyMappingBuilder<T> IsIdentity()
- public PropertyMappingBuilder<T> IsNotColumn()
- public PropertyMappingBuilder<T> IsNullable(bool isNullable = true)
- public PropertyMappingBuilder<T> IsPrimaryKey(int order = -1)
- public PropertyMappingBuilder<T> Member(Expression<Func<T, object>> func)
- public PropertyMappingBuilder<T> Property(Expression<Func<T, object>> func)
-
public enum Relationship
-
public class ResultSetIndexAttribute : Attribute
-
public class ScalarTypeAttribute : Attribute
-
public class SequenceNameAttribute : Attribute
-
public abstract class SkipBaseAttribute : Attribute
-
public enum SkipModification
-
public abstract class SkipValuesByListAttribute : SkipBaseAttribute
-
public class SkipValuesOnInsertAttribute : SkipValuesByListAttribute
-
public class SkipValuesOnUpdateAttribute : SkipValuesByListAttribute
-
public class StoredProcedure : Attribute
-
public class TableAttribute : Attribute
LinqToDB.Metadata
LinqToDB.Reflection
LinqToDB.SchemaProvider
-
public enum AssociationType
-
public class ColumnInfo
-
public class ColumnSchema
-
public class DatabaseSchema
-
public class DataTypeInfo
-
public class ForeignKeyInfo
-
public class ForeignKeySchema
-
public class GetSchemaOptions
-
public interface ISchemaProvider
-
public struct LoadTableData
-
public class ParameterSchema
-
public class PrimaryKeyInfo
-
public class ProcedureInfo
-
public class ProcedureParameterInfo
-
public class ProcedureSchema
-
public abstract class SchemaProviderBase : ISchemaProvider
- protected List<DataTypeInfo> DataTypes
- protected Dictionary<string, DataTypeInfo> DataTypesDic
- protected DataTable DataTypesSchema
- protected HashSet<string> ExcludedCatalogs
- protected HashSet<string> ExcludedSchemas
- protected bool GenerateChar1AsString
- protected HashSet<string> IncludedCatalogs
- protected HashSet<string> IncludedSchemas
- protected virtual bool GetProcedureSchemaExecutesProcedure { get; }
- protected SchemaProviderBase()
- protected static HashSet<string> GetHashSet(string[] data, IEqualityComparer<string> comparer)
- public static string ToTypeName(Type type, bool isNullable)
- public static string ToValidName(string name)
- protected virtual DataParameter BuildProcedureParameter(ParameterSchema p)
- protected virtual string BuildTableFunctionLoadTableSchemaCommand(ProcedureSchema procedure, string commandText)
- protected virtual StringComparison ForeignKeyColumnComparison(string column)
- protected abstract List<ColumnInfo> GetColumns(DataConnection dataConnection)
- protected virtual string GetDatabaseName(DbConnection dbConnection)
- protected virtual string GetDataSourceName(DbConnection dbConnection)
- protected abstract DataType GetDataType(string dataType, string columnType, long? length, int? prec, int? scale)
- protected DataTypeInfo GetDataType(string typeName)
- protected virtual List<DataTypeInfo> GetDataTypes(DataConnection dataConnection)
- protected virtual string GetDbType(string columnType, DataTypeInfo dataType, long? length, int? prec, int? scale, string udtCatalog, string udtSchema, string udtName)
- protected abstract List<ForeignKeyInfo> GetForeignKeys(DataConnection dataConnection)
- protected abstract List<PrimaryKeyInfo> GetPrimaryKeys(DataConnection dataConnection)
- protected virtual List<ProcedureParameterInfo> GetProcedureParameters(DataConnection dataConnection)
- protected virtual List<ColumnSchema> GetProcedureResultColumns(DataTable resultTable)
- protected virtual List<ProcedureInfo> GetProcedures(DataConnection dataConnection)
- protected virtual DataTable GetProcedureSchema(DataConnection dataConnection, string commandText, CommandType commandType, DataParameter[] parameters)
- protected virtual List<ProcedureSchema> GetProviderSpecificProcedures(DataConnection dataConnection)
- protected virtual List<TableSchema> GetProviderSpecificTables(DataConnection dataConnection)
- protected virtual string GetProviderSpecificType(string dataType)
- protected abstract string GetProviderSpecificTypeNamespace()
- public virtual DatabaseSchema GetSchema(DataConnection dataConnection, GetSchemaOptions options = null)
- protected virtual Type GetSystemType(string dataType, string columnType, DataTypeInfo dataTypeInfo, long? length, int? precision, int? scale)
- protected abstract List<TableInfo> GetTables(DataConnection dataConnection)
- protected virtual void InitProvider(DataConnection dataConnection)
- protected virtual void LoadProcedureTableSchema(DataConnection dataConnection, ProcedureSchema procedure, string commandText, List<TableSchema> tables)
- protected virtual DatabaseSchema ProcessSchema(DatabaseSchema databaseSchema, GetSchemaOptions schemaOptions)
-
public class TableInfo
-
public class TableSchema
LinqToDB.SqlProvider
-
public abstract class BasicSqlBuilder : ISqlBuilder
- protected sealed delegate ColumnSelector : MulticastDelegate
- protected enum Step
- protected static readonly char[] EndLine
- protected Step BuildStep
- protected int Indent
- protected bool SkipAlias
- protected ISqlOptimizer SqlOptimizer
- protected SqlProviderFlags SqlProviderFlags
- protected SqlStatement Statement
- protected StringBuilder StringBuilder
- protected ValueToSqlConverter ValueToSqlConverter
- public virtual bool IsNestedJoinParenthesisRequired { get; }
- public virtual bool IsNestedJoinSupported { get; }
- protected virtual bool IsRecursiveCteKeywordRequired { get; }
- public virtual string Name { get; }
- protected virtual bool OffsetFirst { get; }
- protected virtual bool SkipFirst { get; }
- protected virtual string SkipFormat { get; }
- protected virtual string TakePercent { get; }
- protected virtual string TakeTies { get; }
- public virtual bool WrapJoinCondition { get; }
- protected BasicSqlBuilder(ISqlOptimizer sqlOptimizer, SqlProviderFlags sqlProviderFlags, ValueToSqlConverter valueToSqlConverter)
- protected static int GetPrecedence(ISqlPredicate predicate)
- protected static string GetTableAlias(ISqlTableSource table)
- protected static bool IsDateDataType(ISqlExpression expr, string dateName)
- protected static bool IsTimeDataType(ISqlExpression expr)
- protected ISqlExpression Add<T>(ISqlExpression expr1, ISqlExpression expr2)
- protected void AlternativeBuildSql(bool implementOrderBy, Action buildSql, string emptyOrderByValue)
- protected void AlternativeBuildSql2(Action buildSql)
- protected IEnumerable<SqlColumn> AlternativeGetSelectedColumns(SelectQuery selectQuery, ColumnSelector columnSelector)
- protected StringBuilder AppendIndent()
- public string ApplyQueryHints(string sql, List<string> queryHints)
- protected virtual void BuildBinaryExpression(SqlBinaryExpression expr)
- protected virtual void BuildColumnExpression(SelectQuery selectQuery, ISqlExpression expr, string alias, ref bool addAlias)
- protected virtual void BuildColumns(SelectQuery selectQuery)
- protected virtual void BuildCommand(SqlStatement statement, int commandNumber)
- protected virtual void BuildCreateTableFieldType(SqlField field)
- protected virtual void BuildCreateTableIdentityAttribute1(SqlField field)
- protected virtual void BuildCreateTableIdentityAttribute2(SqlField field)
- protected virtual void BuildCreateTableNullAttribute(SqlField field, DefaultNullable defaultNullable)
- protected virtual void BuildCreateTablePrimaryKey(SqlCreateTableStatement createTable, string pkName, IEnumerable<string> fieldNames)
- protected virtual void BuildCreateTableStatement(SqlCreateTableStatement createTable)
- protected virtual void BuildCteBody(SelectQuery selectQuery)
- protected virtual void BuildDataType(SqlDataType type, bool createDbType)
- protected virtual void BuildDeleteClause(SqlDeleteStatement deleteStatement)
- protected virtual void BuildDeleteQuery(SqlDeleteStatement deleteStatement)
- protected void BuildDeleteQuery2(SqlDeleteStatement deleteStatement)
- protected virtual void BuildDropTableStatement(SqlDropTableStatement dropTable)
- protected void BuildDropTableStatementIfExists(SqlDropTableStatement dropTable)
- protected virtual void BuildEmptyInsert(SqlInsertClause insertClause)
- protected virtual void BuildEndCreateTableStatement(SqlCreateTableStatement createTable)
- protected virtual StringBuilder BuildExpression(ISqlExpression expr, bool buildTableName, bool checkParentheses, string alias, ref bool addAlias, bool throwExceptionIfTableNotFound = true)
- protected StringBuilder BuildExpression(ISqlExpression expr)
- protected void BuildExpression(ISqlExpression expr, bool buildTableName, bool checkParentheses, bool throwExceptionIfTableNotFound = true)
- protected void BuildExpression(int precedence, ISqlExpression expr)
- protected virtual void BuildFromClause(SqlStatement statement, SelectQuery selectQuery)
- protected virtual void BuildFunction(SqlFunction func)
- protected virtual void BuildGetIdentity(SqlInsertClause insertClause)
- protected virtual void BuildGroupByClause(SelectQuery selectQuery)
- protected virtual void BuildHavingClause(SelectQuery selectQuery)
- protected void BuildInsertClause(SqlStatement statement, SqlInsertClause insertClause, bool addAlias)
- protected virtual void BuildInsertClause(SqlStatement statement, SqlInsertClause insertClause, string insertText, bool appendTableName, bool addAlias)
- protected virtual void BuildInsertOrUpdateQuery(SqlInsertOrUpdateStatement insertOrUpdate)
- protected virtual void BuildInsertOrUpdateQueryAsMerge(SqlInsertOrUpdateStatement insertOrUpdate, string fromDummyTable)
- protected void BuildInsertOrUpdateQueryAsUpdateInsert(SqlInsertOrUpdateStatement insertOrUpdate)
- protected virtual void BuildInsertQuery(SqlStatement statement, SqlInsertClause insertClause, bool addAlias)
- protected void BuildInsertQuery2(SqlStatement statement, SqlInsertClause insertClause, bool addAlias)
- protected virtual bool BuildJoinType(SqlJoinedTable join)
- protected virtual void BuildLikePredicate(Like predicate)
- protected virtual void BuildOffsetLimit(SelectQuery selectQuery)
- protected virtual void BuildOrderByClause(SelectQuery selectQuery)
- protected virtual void BuildOutputSubclause(SqlStatement statement, SqlInsertClause insertClause)
- protected void BuildPhysicalTable(ISqlTableSource table, string alias)
- protected virtual void BuildPredicate(ISqlPredicate predicate)
- protected void BuildPredicate(int parentPrecedence, ISqlPredicate predicate)
- protected void BuildPredicate(int parentPrecedence, int precedence, ISqlPredicate predicate)
- protected virtual void BuildSearchCondition(SqlSearchCondition condition)
- protected virtual void BuildSearchCondition(int parentPrecedence, SqlSearchCondition condition)
- protected virtual void BuildSelectClause(SelectQuery selectQuery)
- protected virtual void BuildSelectQuery(SqlSelectStatement selectStatement)
- protected virtual void BuildSetOperation(SetOperation operation, StringBuilder sb)
- protected virtual void BuildSkipFirst(SelectQuery selectQuery)
- public void BuildSql(int commandNumber, SqlStatement statement, StringBuilder sb, int startIndent = 0)
- protected virtual void BuildSql(int commandNumber, SqlStatement statement, StringBuilder sb, int indent, bool skipAlias)
- protected virtual void BuildSql()
- protected virtual void BuildSqlBuilder(SelectQuery selectQuery, int indent, bool skipAlias)
- protected virtual void BuildStartCreateTableStatement(SqlCreateTableStatement createTable)
- public virtual StringBuilder BuildTableName(StringBuilder sb, string database, string schema, string table)
- protected void BuildTableName(SqlTableSource ts, bool buildName, bool buildAlias)
- protected virtual void BuildTakeHints(SelectQuery selectQuery)
- protected virtual void BuildTruncateTable(SqlTruncateTableStatement truncateTable)
- protected virtual void BuildTruncateTableStatement(SqlTruncateTableStatement truncateTable)
- protected virtual void BuildUnknownQuery()
- protected virtual void BuildUpdateClause(SqlStatement statement, SelectQuery selectQuery, SqlUpdateClause updateClause)
- protected virtual void BuildUpdateQuery(SqlStatement statement, SelectQuery selectQuery, SqlUpdateClause updateClause)
- protected virtual void BuildUpdateSet(SelectQuery selectQuery, SqlUpdateClause updateClause)
- protected virtual void BuildUpdateTable(SelectQuery selectQuery, SqlUpdateClause updateClause)
- protected virtual void BuildUpdateTableName(SelectQuery selectQuery, SqlUpdateClause updateClause)
- protected void BuildValue(SqlDataType dataType, object value)
- protected virtual bool BuildWhere(SelectQuery selectQuery)
- protected virtual void BuildWhereClause(SelectQuery selectQuery)
- protected virtual void BuildWhereSearchCondition(SelectQuery selectQuery, SqlSearchCondition condition)
- protected virtual void BuildWithClause(SqlWithClause with)
- protected virtual bool CanSkipRootAliases(SqlStatement statement)
- public virtual int CommandCount(SqlStatement statement)
- public virtual object Convert(object value, ConvertType convertType)
- protected SqlFunction ConvertFunctionParameters(SqlFunction func)
- public virtual StringBuilder ConvertTableName(StringBuilder sb, string database, string schema, string table)
- protected abstract ISqlBuilder CreateSqlBuilder()
- protected void (SqlInsertOrUpdateStatement insertOrUpdate, List<SqlSetExpression> keys)
- protected virtual string FirstFormat(SelectQuery selectQuery)
- public virtual ISqlExpression GetIdentityExpression(SqlTable table)
- public virtual string GetMaxValueSql(EntityDescriptor entity, ColumnDescriptor column)
- protected virtual string GetProviderTypeName(IDbDataParameter parameter)
- public virtual string GetReserveSequenceValuesSql(int count, string sequenceName)
- protected virtual IEnumerable<SqlColumn> GetSelectedColumns(SelectQuery selectQuery)
- protected SequenceNameAttribute GetSequenceNameAttribute(SqlTable table, bool throwException)
- protected virtual string GetTableDatabaseName(SqlTable table)
- protected virtual string GetTableOwnerName(SqlTable table)
- protected virtual string GetTablePhysicalName(SqlTable table)
- protected virtual string GetTableSchemaName(SqlTable table)
- protected string[] GetTempAliases(int n, string defaultAlias)
- protected virtual string GetTypeName(IDbDataParameter parameter)
- protected virtual string GetUdtTypeName(IDbDataParameter parameter)
- protected virtual bool IsReserved(string word)
- protected virtual string LimitFormat(SelectQuery selectQuery)
- protected bool NeedSkip(SelectQuery selectQuery)
- protected bool NeedTake(SelectQuery selectQuery)
- protected virtual string OffsetFormat(SelectQuery selectQuery)
- protected virtual bool ParenthesizeJoin(List<SqlJoinedTable> joins)
- protected virtual void PrintParameterName(StringBuilder sb, IDbDataParameter parameter)
- public virtual StringBuilder PrintParameters(StringBuilder sb, IDbDataParameter[] parameters)
- protected virtual void PrintParameterType(StringBuilder sb, IDbDataParameter parameter)
- protected virtual void PrintParameterValue(StringBuilder sb, IDbDataParameter parameter)
- protected T WithStringBuilder<T>(StringBuilder sb, Func<T> func)
-
public class BasicSqlOptimizer : ISqlOptimizer
- public SqlProviderFlags SqlProviderFlags { get; }
- protected BasicSqlOptimizer(SqlProviderFlags sqlProviderFlags)
- protected static bool IsDateDataType(ISqlExpression expr, string dateName)
- protected static bool IsTimeDataType(ISqlExpression expr)
- public ISqlExpression Add(ISqlExpression expr1, ISqlExpression expr2, Type type)
- public ISqlExpression Add<T>(ISqlExpression expr1, ISqlExpression expr2)
- public ISqlExpression Add(ISqlExpression expr1, int value)
- protected ISqlExpression AlternativeConvertToBoolean(SqlFunction func, int paramNumber)
- protected void CheckAliases(SqlStatement statement, int maxLen)
- protected virtual ISqlExpression ConvertConvertion(SqlFunction func)
- public virtual bool ConvertCountSubQuery(SelectQuery subQuery)
- protected ISqlPredicate ConvertEqualPredicate(ExprExpr expr)
- public virtual ISqlExpression ConvertExpression(ISqlExpression expression)
- public virtual ISqlPredicate ConvertPredicate(SelectQuery selectQuery, ISqlPredicate predicate)
- public ISqlExpression Dec(ISqlExpression expr1)
- public ISqlExpression Div(ISqlExpression expr1, ISqlExpression expr2, Type type)
- public ISqlExpression Div<T>(ISqlExpression expr1, ISqlExpression expr2)
- public ISqlExpression Div(ISqlExpression expr1, int value)
- public virtual SqlStatement Finalize(SqlStatement statement)
- protected ISqlExpression FloorBeforeConvert(SqlFunction func)
- protected SqlDeleteStatement GetAlternativeDelete(SqlDeleteStatement deleteStatement)
- protected SqlStatement GetAlternativeUpdate(SqlUpdateStatement updateStatement)
- protected virtual int GetMaxDisplaySize(SqlDataType type)
- protected virtual int GetMaxLength(SqlDataType type)
- protected virtual int GetMaxPrecision(SqlDataType type)
- protected virtual int GetMaxScale(SqlDataType type)
- public ISqlExpression Inc(ISqlExpression expr1)
- public ISqlExpression Mul(ISqlExpression expr1, ISqlExpression expr2, Type type)
- public ISqlExpression Mul<T>(ISqlExpression expr1, ISqlExpression expr2)
- public ISqlExpression Mul(ISqlExpression expr1, int value)
- public void OptimizeJoins(SqlStatement statement)
- public virtual SqlStatement OptimizeStatement(SqlStatement statement)
- public ISqlExpression Sub(ISqlExpression expr1, ISqlExpression expr2, Type type)
- public ISqlExpression Sub<T>(ISqlExpression expr1, ISqlExpression expr2)
- public ISqlExpression Sub(ISqlExpression expr1, int value)
-
public enum ConvertType
-
public interface ISqlBuilder
- string Name { get; }
- string ApplyQueryHints(string sqlText, List<string> queryHints)
- void BuildSql(int commandNumber, SqlStatement statement, StringBuilder sb, int startIndent = 0)
- StringBuilder BuildTableName(StringBuilder sb, string database, string schema, string table)
- int CommandCount(SqlStatement statement)
- object Convert(object value, ConvertType convertType)
- StringBuilder ConvertTableName(StringBuilder sb, string database, string schema, string table)
- ISqlExpression GetIdentityExpression(SqlTable table)
- string GetMaxValueSql(EntityDescriptor entity, ColumnDescriptor column)
- string GetReserveSequenceValuesSql(int count, string sequenceName)
- StringBuilder PrintParameters(StringBuilder sb, IDbDataParameter[] parameters)
-
public interface ISqlOptimizer
-
public class SqlProviderFlags
-
public class ValueToSqlConverter
LinqToDB.SqlQuery
-
public abstract class ClauseBase
-
public abstract class ClauseBase<T1, T2> : ConditionBase<T1, T2> where T1 : ClauseBase<T1, T2>
-
public abstract class ConditionBase<T1, T2> : IConditionExpr<Expr_<T1, T2>> where T1 : ConditionBase<T1, T2>
- public class Expr_<T1, T2> where T1 : ConditionBase<T1, T2>
- public class Not_<T1, T2> : IConditionExpr<Expr_<T1, T2>> where T1 : ConditionBase<T1, T2>
- public Not_<T1, T2> Not { get; }
- protected abstract SqlSearchCondition Search { get; }
- protected ConditionBase()
- public T2 Exists(SelectQuery subQuery)
- public Expr_<T1, T2> Expr(ISqlExpression expr)
- public Expr_<T1, T2> Field(SqlField field)
- protected abstract T2 GetNext()
- protected T1 SetOr(bool value)
- public Expr_<T1, T2> SubQuery(SelectQuery selectQuery)
- public Expr_<T1, T2> Value(object value)
-
public class CteClause : IQueryElement, ICloneableElement, ISqlExpressionWalkable
- public static int CteIDCounter
- public SelectQuery Body { get; set; }
- public int CteID { get; }
- public QueryElementType ElementType { get; }
- public SqlField[] Fields { get; }
- public bool IsRecursive { get; set; }
- public string Name { get; set; }
- public Type ObjectType { get; set; }
- public CteClause(SelectQuery body, Type objectType, bool isRecursive, string name)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public SqlField RegisterFieldMapping(ISqlExpression baseExpression, ISqlExpression expression, int index, Func<SqlField> fieldFactory)
- public StringBuilder ToString(StringBuilder sb, Dictionary<IQueryElement, IQueryElement> dic)
- public ISqlExpression Walk(WalkOptions options, Func<ISqlExpression, ISqlExpression> func)
-
public enum DefaultNullable
-
public static class Extensions
- public static Join CrossApply(this ISqlTableSource table, Join[] joins)
- public static Join CrossApply(this ISqlTableSource table, string alias, Join[] joins)
- public static Join FullJoin(this ISqlTableSource table, Join[] joins)
- public static Join FullJoin(this ISqlTableSource table, string alias, Join[] joins)
- public static Join InnerJoin(this ISqlTableSource table, Join[] joins)
- public static Join InnerJoin(this ISqlTableSource table, string alias, Join[] joins)
- public static Join Join(this ISqlTableSource table, Join[] joins)
- public static Join Join(this ISqlTableSource table, string alias, Join[] joins)
- public static Join LeftJoin(this ISqlTableSource table, Join[] joins)
- public static Join LeftJoin(this ISqlTableSource table, string alias, Join[] joins)
- public static Join OuterApply(this ISqlTableSource table, Join[] joins)
- public static Join OuterApply(this ISqlTableSource table, string alias, Join[] joins)
- public static Join RightJoin(this ISqlTableSource table, Join[] joins)
- public static Join RightJoin(this ISqlTableSource table, string alias, Join[] joins)
- public static Join WeakInnerJoin(this ISqlTableSource table, Join[] joins)
- public static Join WeakInnerJoin(this ISqlTableSource table, string alias, Join[] joins)
- public static Join WeakJoin(this ISqlTableSource table, Join[] joins)
- public static Join WeakJoin(this ISqlTableSource table, string alias, Join[] joins)
- public static Join WeakLeftJoin(this ISqlTableSource table, Join[] joins)
- public static Join WeakLeftJoin(this ISqlTableSource table, string alias, Join[] joins)
-
public interface ICloneableElement
-
public interface IQueryElement
-
public interface ISqlExpression : IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
-
public interface ISqlExpressionWalkable
-
public interface ISqlPredicate : IQueryElement, ISqlExpressionWalkable, ICloneableElement
-
public interface ISqlTableSource : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
-
public interface IValueContainer
-
public enum JoinType
-
public class ObjectSqlExpression : SqlExpression
-
public class Precedence
-
public enum QueryElementType
-
public static class QueryHelper
- public static bool CanRemoveOrderBy(SelectQuery selectQuery, SqlProviderFlags flags, QueryInformation information)
- public static void CollectDependencies(IQueryElement root, IEnumerable<ISqlTableSource> sources, HashSet<ISqlExpression> found, IEnumerable<IQueryElement> ignore = null)
- public static void ConcatSearchCondition(this SqlWhereClause where, SqlSearchCondition search)
- public static void CorrectSearchConditionNesting(SelectQuery selectQuery, SqlSearchCondition searchCondition)
- public static IEnumerable<ISqlTableSource> EnumerateLevelSources(SqlTableSource tableSource)
- public static IEnumerable<ISqlTableSource> EnumerateLevelSources(SelectQuery selectQuery)
- public static SqlJoinedTable FindJoin(this SelectQuery query, Func<SqlJoinedTable, bool> match)
- public static SqlField GetUnderlyingField(ISqlExpression expression)
- public static bool IsEqualTables(SqlTable table1, SqlTable table2)
- public static ISqlExpression NeedColumnForExpression(SelectQuery selectQuery, ISqlExpression forExpression, bool inProjection)
- public static SelectQuery RootQuery(this SelectQuery query)
- public static bool TryConvertOrderedDistinctToGroupBy(SelectQuery select, SqlProviderFlags flags)
- public static bool TryRemoveDistinct(SelectQuery selectQuery, QueryInformation information)
-
public class QueryInformation
-
public enum QueryType
-
public class QueryVisitor
- public IQueryElement ParentElement { get; }
- public List<IQueryElement> Stack { get; }
- public Dictionary<IQueryElement, IQueryElement> VisitedElements { get; }
- public QueryVisitor()
- public static IQueryElement Find(IQueryElement element, Func<IQueryElement, bool> find)
- public T Convert<T>(T element, Func<IQueryElement, IQueryElement> action) where T : IQueryElement
- public T ConvertImmutable<T>(T element, Func<IQueryElement, IQueryElement> action) where T : IQueryElement
- public void Visit(IQueryElement element, Action<IQueryElement> action)
- public void VisitAll(IQueryElement element, Action<IQueryElement> action)
- public void VisitParentFirst(IQueryElement element, Func<IQueryElement, bool> action)
-
public static class ReservedWords
- public static void Add(string word, string providerName = null)
- public static bool IsReserved(string word, string providerName = null)
-
public class SelectQuery : ISqlTableSource, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
- public static int SourceIDCounter
- public SqlField All { get; }
- public bool CanBeNull { get; }
- public bool DoNotRemove { get; set; }
- public QueryElementType ElementType { get; }
- public SqlFromClause From { get; }
- public SqlGroupByClause GroupBy { get; }
- public bool HasSetOperators { get; }
- public bool HasUniqueKeys { get; }
- public SqlWhereClause Having { get; }
- public bool IsParameterDependent { get; set; }
- public bool IsSimple { get; }
- public SqlOrderByClause OrderBy { get; }
- public SelectQuery ParentSelect { get; set; }
- public int Precedence { get; }
- public List<object> Properties { get; }
- public SqlSelectClause Select { get; }
- public List<SqlSetOperator> SetOperators { get; }
- public int SourceID { get; }
- public SqlTableType SqlTableType { get; }
- public string SqlText { get; }
- public Type SystemType { get; }
- public List<ISqlExpression[]> UniqueKeys { get; }
- public SqlWhereClause Where { get; }
- public SelectQuery()
- public void AddUnion(SelectQuery union, bool isAll)
- public SelectQuery Clone()
- public SelectQuery Clone(Predicate<ICloneableElement> doClone)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
- public void ForEachTable(Action<SqlTableSource> action, HashSet<SelectQuery> visitedQueries)
- public IList<ISqlExpression> GetKeys(bool allIfEmpty)
- public ISqlTableSource GetTableSource(ISqlTableSource table)
- public StringBuilder ToString(StringBuilder sb, Dictionary<IQueryElement, IQueryElement> dic)
- public ISqlExpression Walk(WalkOptions options, Func<ISqlExpression, ISqlExpression> func)
-
public enum SetOperation
-
public class SqlBinaryExpression : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
- public bool CanBeNull { get; }
- public QueryElementType ElementType { get; }
- public ISqlExpression Expr1 { get; }
- public ISqlExpression Expr2 { get; }
- public string Operation { get; }
- public int Precedence { get; }
- public string SqlText { get; }
- public Type SystemType { get; }
- public SqlBinaryExpression(Type systemType, ISqlExpression expr1, string operation, ISqlExpression expr2, int precedence)
- public SqlBinaryExpression(Type systemType, ISqlExpression expr1, string operation, ISqlExpression expr2)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
-
public class SqlColumn : IEquatable<SqlColumn>, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
- public string Alias { get; set; }
- public bool CanBeNull { get; }
- public QueryElementType ElementType { get; }
- public ISqlExpression Expression { get; set; }
- public SelectQuery Parent { get; set; }
- public int Precedence { get; }
- public Type SystemType { get; }
- public SqlColumn UnderlyingColumn { get; }
- public SqlColumn(SelectQuery parent, ISqlExpression expression, string alias)
- public SqlColumn(SelectQuery builder, ISqlExpression expression)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(SqlColumn other)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
- public ISqlExpression Walk(WalkOptions options, Func<ISqlExpression, ISqlExpression> func)
-
public class SqlCondition : IQueryElement, ICloneableElement
-
public class SqlCreateTableStatement : SqlStatement
-
public class SqlCteTable : SqlTable
-
public class SqlDataType : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
- public static readonly SqlDataType Boolean
- public static readonly SqlDataType Byte
- public static readonly SqlDataType ByteArray
- public static readonly SqlDataType Char
- public static readonly SqlDataType CharArray
- public static readonly SqlDataType DateTime
- public static readonly SqlDataType DateTimeOffset
- public static readonly SqlDataType DbBinary
- public static readonly SqlDataType DbBinaryJson
- public static readonly SqlDataType DbBitArray
- public static readonly SqlDataType DbBoolean
- public static readonly SqlDataType DbByte
- public static readonly SqlDataType DbChar
- public static readonly SqlDataType DbDate
- public static readonly SqlDataType DbDateTime
- public static readonly SqlDataType DbDateTime2
- public static readonly SqlDataType DbDateTimeOffset
- public static readonly SqlDataType DbDecimal
- public static readonly SqlDataType DbDictionary
- public static readonly SqlDataType DbDouble
- public static readonly SqlDataType DbGuid
- public static readonly SqlDataType DbImage
- public static readonly SqlDataType DbInt16
- public static readonly SqlDataType DbInt32
- public static readonly SqlDataType DbInt64
- public static readonly SqlDataType DbJson
- public static readonly SqlDataType DbMoney
- public static readonly SqlDataType DbNChar
- public static readonly SqlDataType DbNText
- public static readonly SqlDataType DbNVarChar
- public static readonly SqlDataType DbSByte
- public static readonly SqlDataType DbSingle
- public static readonly SqlDataType DbSmallDateTime
- public static readonly SqlDataType DbSmallMoney
- public static readonly SqlDataType DbText
- public static readonly SqlDataType DbTime
- public static readonly SqlDataType DbTimestamp
- public static readonly SqlDataType DbUdt
- public static readonly SqlDataType DbUInt16
- public static readonly SqlDataType DbUInt32
- public static readonly SqlDataType DbUInt64
- public static readonly SqlDataType DbVarBinary
- public static readonly SqlDataType DbVarChar
- public static readonly SqlDataType DbVariant
- public static readonly SqlDataType DbXml
- public static readonly SqlDataType Decimal
- public static readonly SqlDataType Double
- public static readonly SqlDataType Guid
- public static readonly SqlDataType Int16
- public static readonly SqlDataType Int32
- public static readonly SqlDataType LinqBinary
- public static readonly SqlDataType SByte
- public static readonly SqlDataType Single
- public static readonly SqlDataType SqlBinary
- public static readonly SqlDataType SqlBoolean
- public static readonly SqlDataType SqlByte
- public static readonly SqlDataType SqlBytes
- public static readonly SqlDataType SqlChars
- public static readonly SqlDataType SqlDateTime
- public static readonly SqlDataType SqlDecimal
- public static readonly SqlDataType SqlDouble
- public static readonly SqlDataType SqlGuid
- public static readonly SqlDataType SqlInt16
- public static readonly SqlDataType SqlInt32
- public static readonly SqlDataType SqlInt64
- public static readonly SqlDataType SqlMoney
- public static readonly SqlDataType SqlSingle
- public static readonly SqlDataType SqlString
- public static readonly SqlDataType SqlXml
- public static readonly SqlDataType String
- public static readonly SqlDataType TimeSpan
- public static readonly SqlDataType UInt16
- public static readonly SqlDataType UInt32
- public static readonly SqlDataType UInt64
- public static readonly SqlDataType Undefined
- public bool CanBeNull { get; }
- public DataType DataType { get; }
- public string DbType { get; }
- public QueryElementType ElementType { get; }
- public bool IsCharDataType { get; }
- public int? Length { get; }
- public int Precedence { get; }
- public int? Precision { get; }
- public int? Scale { get; }
- public Type SystemType { get; }
- public Type Type { get; }
- public SqlDataType(DataType dataType)
- public SqlDataType(DbDataType dataType)
- public SqlDataType(DataType dataType, int? length)
- public SqlDataType(DataType dataType, int? precision, int? scale)
- public SqlDataType(Type type)
- public SqlDataType(Type type, int length)
- public SqlDataType(Type type, int precision, int scale)
- public SqlDataType(DataType dataType, Type type)
- public SqlDataType(DataType dataType, Type type, int length)
- public SqlDataType(DataType dataType, Type type, int precision, int scale)
- public static SqlDataType GetDataType(Type type)
- public static SqlDataType GetDataType(DataType type)
- public static int GetMaxDisplaySize(DataType dbType)
- public static int GetMaxLength(DataType dbType)
- public static int GetMaxPrecision(DataType dbType)
- public static int GetMaxScale(DataType dbType)
- public static bool TypeCanBeNull(Type type)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
-
public class SqlDeleteClause2 : IQueryElement, ISqlExpressionWalkable, ICloneableElement
-
public class SqlDeleteStatement : SqlStatementWithQueryBase
-
public class SqlDropTableStatement : SqlStatement
-
public class SqlException : Exception
-
public class SqlExpression : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
- public bool CanBeNull { get; set; }
- public QueryElementType ElementType { get; }
- public string Expr { get; }
- public bool IsAggregate { get; }
- public ISqlExpression[] Parameters { get; }
- public int Precedence { get; }
- public Type SystemType { get; }
- public SqlExpression(Type systemType, string expr, int precedence, bool isAggregate, ISqlExpression[] parameters)
- public SqlExpression(Type systemType, string expr, int precedence, ISqlExpression[] parameters)
- public SqlExpression(string expr, int precedence, ISqlExpression[] parameters)
- public SqlExpression(Type systemType, string expr, ISqlExpression[] parameters)
- public SqlExpression(string expr, ISqlExpression[] parameters)
- public static bool NeedsEqual(IQueryElement ex)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
-
public static class SqlExtensions
-
public class SqlField : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
-
public class SqlFromClause : ClauseBase, IQueryElement, ISqlExpressionWalkable
-
public class SqlFunction : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
- public bool CanBeNull { get; set; }
- public QueryElementType ElementType { get; }
- public bool IsAggregate { get; }
- public string Name { get; }
- public ISqlExpression[] Parameters { get; }
- public int Precedence { get; }
- public Type SystemType { get; }
- public SqlFunction(Type systemType, string name, ISqlExpression[] parameters)
- public SqlFunction(Type systemType, string name, bool isAggregate, ISqlExpression[] parameters)
- public SqlFunction(Type systemType, string name, bool isAggregate, int precedence, ISqlExpression[] parameters)
- public static SqlFunction CreateAll(SelectQuery subQuery)
- public static SqlFunction CreateAny(SelectQuery subQuery)
- public static SqlFunction CreateCount(Type type, ISqlTableSource table)
- public static SqlFunction CreateExists(SelectQuery subQuery)
- public static SqlFunction CreateSome(SelectQuery subQuery)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
-
public class SqlGroupByClause : ClauseBase, IQueryElement, ISqlExpressionWalkable
-
public class SqlInsertClause : IQueryElement, ISqlExpressionWalkable, ICloneableElement
-
public class SqlInsertOrUpdateStatement : SqlStatementWithQueryBase
-
public class SqlInsertStatement : SqlStatementWithQueryBase
-
public class SqlInsertWithIdentity
-
public class SqlJoinedTable : IQueryElement, ISqlExpressionWalkable, ICloneableElement
- public bool CanConvertApply { get; set; }
- public SqlSearchCondition Condition { get; }
- public QueryElementType ElementType { get; }
- public bool IsWeak { get; set; }
- public JoinType JoinType { get; set; }
- public SqlTableSource Table { get; set; }
- public SqlJoinedTable(JoinType joinType, SqlTableSource table, bool isWeak, SqlSearchCondition searchCondition)
- public SqlJoinedTable(JoinType joinType, SqlTableSource table, bool isWeak)
- public SqlJoinedTable(JoinType joinType, ISqlTableSource table, string alias, bool isWeak)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public ISqlExpression Walk(WalkOptions options, Func<ISqlExpression, ISqlExpression> action)
-
public class SqlOrderByClause : ClauseBase, IQueryElement, ISqlExpressionWalkable
-
public class SqlOrderByItem : IQueryElement, ICloneableElement
-
public class SqlParameter : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement, IValueContainer
- public bool CanBeNull { get; }
- public DataType DataType { get; set; }
- public int? DbSize { get; set; }
- public string DbType { get; set; }
- public QueryElementType ElementType { get; }
- public bool IsQueryParameter { get; set; }
- public string LikeEnd { get; set; }
- public string LikeStart { get; set; }
- public string Name { get; set; }
- public int Precedence { get; }
- public bool ReplaceLike { get; set; }
- public Type SystemType { get; set; }
- public object Value { get; set; }
- public Func<object, object> ValueConverter { get; set; }
- public SqlParameter(Type systemType, string name, object value)
- public SqlParameter(Type systemType, string name, object value, Func<object, object> valueConverter)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
-
public abstract class SqlPredicate : ISqlPredicate, IQueryElement, ISqlExpressionWalkable, ICloneableElement
-
public class SqlRawSqlTable : SqlTable, IQueryElement
-
public class SqlSearchCondition : ConditionBase<SqlSearchCondition, Next>, ISqlPredicate, IQueryElement, ISqlExpressionWalkable, ICloneableElement, ISqlExpression, IEquatable<ISqlExpression>
-
public class SqlSelectClause : ClauseBase, IQueryElement, ISqlExpressionWalkable
- public List<SqlColumn> Columns { get; }
- public QueryElementType ElementType { get; }
- public bool HasModifier { get; }
- public bool IsDistinct { get; set; }
- public ISqlExpression SkipValue { get; set; }
- public TakeHints? TakeHints { get; }
- public ISqlExpression TakeValue { get; }
- public int Add(ISqlExpression expr)
- public int Add(ISqlExpression expr, string alias)
- public int AddNew(ISqlExpression expr)
- public SqlColumn AddNewColumn(ISqlExpression expr)
- public SqlSelectClause Expr(ISqlExpression expr)
- public SqlSelectClause Expr(ISqlExpression expr, string alias)
- public SqlSelectClause Expr(string expr, ISqlExpression[] values)
- public SqlSelectClause Expr(Type systemType, string expr, ISqlExpression[] values)
- public SqlSelectClause Expr(string expr, int priority, ISqlExpression[] values)
- public SqlSelectClause Expr(Type systemType, string expr, int priority, ISqlExpression[] values)
- public SqlSelectClause Expr(string alias, string expr, int priority, ISqlExpression[] values)
- public SqlSelectClause Expr(Type systemType, string alias, string expr, int priority, ISqlExpression[] values)
- public SqlSelectClause Expr<T>(ISqlExpression expr1, string operation, ISqlExpression expr2)
- public SqlSelectClause Expr<T>(ISqlExpression expr1, string operation, ISqlExpression expr2, int priority)
- public SqlSelectClause Expr<T>(string alias, ISqlExpression expr1, string operation, ISqlExpression expr2, int priority)
- public SqlSelectClause ExprNew(ISqlExpression expr)
- public SqlSelectClause Field(SqlField field)
- public SqlSelectClause Field(SqlField field, string alias)
- public SqlSelectClause Skip(int value)
- public SqlSelectClause Skip(ISqlExpression value)
- public SqlSelectClause SubQuery(SelectQuery subQuery)
- public SqlSelectClause SubQuery(SelectQuery selectQuery, string alias)
- public SqlSelectClause Take(int value, TakeHints? hints)
- public SqlSelectClause Take(ISqlExpression value, TakeHints? hints)
-
public class SqlSelectStatement : SqlStatementWithQueryBase
-
public class SqlSetExpression : IQueryElement, ISqlExpressionWalkable, ICloneableElement
-
public class SqlSetOperator : IQueryElement
-
public abstract class SqlStatement : IQueryElement, ISqlExpressionWalkable, ICloneableElement
-
public abstract class SqlStatementWithQueryBase : SqlStatement
-
public class SqlTable : ISqlTableSource, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
- public string Alias { get; set; }
- public SqlField All { get; }
- public string Database { get; set; }
- public virtual QueryElementType ElementType { get; }
- public Dictionary<string, SqlField> Fields { get; }
- public SqlField this[string fieldName] { get; }
- public virtual string Name { get; set; }
- public Type ObjectType { get; set; }
- public virtual string PhysicalName { get; set; }
- public string Schema { get; set; }
- public SequenceNameAttribute[] SequenceAttributes { get; protected set; }
- public int SourceID { get; protected set; }
- public virtual SqlTableType SqlTableType { get; set; }
- public ISqlExpression[] TableArguments { get; set; }
- public SqlTable()
- public SqlTable(MappingSchema mappingSchema, Type objectType, string physicalName = null)
- public SqlTable(Type objectType)
- public SqlTable(SqlTable table)
- public SqlTable(SqlTable table, IEnumerable<SqlField> fields, ISqlExpression[] tableArguments)
- public void Add(SqlField field)
- public void AddRange(IEnumerable<SqlField> collection)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
- public SqlField GetIdentityField()
- public IList<ISqlExpression> GetKeys(bool allIfEmpty)
- public virtual ISqlExpression Walk(WalkOptions options, Func<ISqlExpression, ISqlExpression> func)
-
public class SqlTable<T> : SqlTable
-
public class SqlTableSource : ISqlTableSource, ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement
- public string Alias { get; set; }
- public SqlField All { get; }
- public bool CanBeNull { get; }
- public QueryElementType ElementType { get; }
- public bool HasUniqueKeys { get; }
- public SqlTableSource this[ISqlTableSource table] { get; }
- public SqlTableSource this[ISqlTableSource table, string alias] { get; }
- public List<SqlJoinedTable> Joins { get; }
- public int Precedence { get; }
- public ISqlTableSource Source { get; set; }
- public int SourceID { get; }
- public SqlTableType SqlTableType { get; }
- public Type SystemType { get; }
- public List<ISqlExpression[]> UniqueKeys { get; }
- public SqlTableSource(ISqlTableSource source, string alias)
- public SqlTableSource(ISqlTableSource source, string alias, SqlJoinedTable[] joins)
- public SqlTableSource(ISqlTableSource source, string alias, IEnumerable<SqlJoinedTable> joins, IEnumerable<ISqlExpression[]> uniqueKeys)
- public ICloneableElement Clone(Dictionary<ICloneableElement, ICloneableElement> objectTree, Predicate<ICloneableElement> doClone)
- public bool Equals(ISqlExpression other, Func<ISqlExpression, ISqlExpression, bool> comparer)
- public void ForEach(Action<SqlTableSource> action, HashSet<SelectQuery> visitedQueries)
- public int GetJoinNumber()
- public IEnumerable<ISqlTableSource> GetTables()
- public ISqlExpression Walk(WalkOptions options, Func<ISqlExpression, ISqlExpression> func)
-
public enum SqlTableType
-
public class SqlTruncateTableStatement : SqlStatement
-
public class SqlUpdateClause : IQueryElement, ISqlExpressionWalkable, ICloneableElement
-
public class SqlUpdateStatement : SqlStatementWithQueryBase
-
public class SqlValue : ISqlExpression, IQueryElement, IEquatable<ISqlExpression>, ISqlExpressionWalkable, ICloneableElement, IValueContainer
-
public class SqlWhereClause : ClauseBase<SqlWhereClause, Next>, IQueryElement, ISqlExpressionWalkable
-
public class SqlWithClause : IQueryElement, ISqlExpressionWalkable, ICloneableElement
-
public class WalkOptions
LinqToDB.Tools
-
public static class DataExtensions
-
public static class SqlExtensions
- public static bool In<T>(this T value, IEnumerable<T> sequence)
- public static bool In<T>(this T value, IQueryable<T> sequence)
- public static bool In<T>(this T value, T[] sequence)
- public static bool In<T>(this T value, T cmp1, T cmp2)
- public static bool In<T>(this T value, T cmp1, T cmp2, T cmp3)
- public static bool NotIn<T>(this T value, IEnumerable<T> sequence)
- public static bool NotIn<T>(this T value, IQueryable<T> sequence)
- public static bool NotIn<T>(this T value, T[] sequence)
- public static bool NotIn<T>(this T value, T cmp1, T cmp2)
- public static bool NotIn<T>(this T value, T cmp1, T cmp2, T cmp3)
System.Data.Linq