Class MergeDefinition<TTarget, TSource>
Inheritance
System.Object
MergeDefinition<TTarget, TSource>
Assembly: linq2db.dll
Syntax
public class MergeDefinition<TTarget, TSource> : object, IMergeableUsing<TTarget>, IMergeableOn<TTarget, TSource>, IMergeable<TTarget, TSource>, IMergeableSource<TTarget, TSource>
Type Parameters
Name |
Description |
TTarget |
|
TSource |
|
Constructors
|
Improve this Doc
View Source
MergeDefinition(ITable<TTarget>)
Declaration
public MergeDefinition(ITable<TTarget> target)
Parameters
Type |
Name |
Description |
ITable<TTarget> |
target |
|
|
Improve this Doc
View Source
MergeDefinition(ITable<TTarget>, IQueryable<TSource>)
Declaration
public MergeDefinition(ITable<TTarget> target, IQueryable<TSource> source)
Parameters
Type |
Name |
Description |
ITable<TTarget> |
target |
|
IQueryable<TSource> |
source |
|
|
Improve this Doc
View Source
MergeDefinition(ITable<TTarget>, IQueryable<TSource>, String)
Declaration
public MergeDefinition(ITable<TTarget> target, IQueryable<TSource> source, string hint)
Parameters
Type |
Name |
Description |
ITable<TTarget> |
target |
|
IQueryable<TSource> |
source |
|
System.String |
hint |
|
|
Improve this Doc
View Source
MergeDefinition(ITable<TTarget>, String)
Declaration
public MergeDefinition(ITable<TTarget> target, string hint)
Parameters
Type |
Name |
Description |
ITable<TTarget> |
target |
|
System.String |
hint |
|
Properties
|
Improve this Doc
View Source
EnumerableSource
Declaration
public IEnumerable<TSource>? EnumerableSource { get; }
Property Value
Type |
Description |
System.Nullable<IEnumerable<TSource>> |
|
|
Improve this Doc
View Source
Hint
Declaration
public string? Hint { get; }
Property Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
KeyType
Declaration
public Type? KeyType { get; }
Property Value
Type |
Description |
System.Nullable<Type> |
|
|
Improve this Doc
View Source
MatchPredicate
Declaration
public Expression<Func<TTarget, TSource, bool>>? MatchPredicate { get; }
Property Value
Type |
Description |
System.Nullable<Expression<Func<TTarget, TSource, System.Boolean>>> |
|
|
Improve this Doc
View Source
Operations
Declaration
public MergeDefinition<TTarget, TSource>.Operation[] Operations { get; }
Property Value
|
Improve this Doc
View Source
QueryableSource
Declaration
public IQueryable<TSource>? QueryableSource { get; }
Property Value
Type |
Description |
System.Nullable<IQueryable<TSource>> |
|
|
Improve this Doc
View Source
SourceKey
Declaration
public Expression? SourceKey { get; }
Property Value
Type |
Description |
System.Nullable<Expression> |
|
|
Improve this Doc
View Source
Target
Declaration
public ITable<TTarget> Target { get; }
Property Value
Type |
Description |
ITable<TTarget> |
|
|
Improve this Doc
View Source
TargetKey
Declaration
public Expression? TargetKey { get; }
Property Value
Type |
Description |
System.Nullable<Expression> |
|
Methods
|
Improve this Doc
View Source
AddOnKey<TKey>(Expression<Func<TTarget, TKey>>, Expression<Func<TSource, TKey>>)
Declaration
public MergeDefinition<TTarget, TSource> AddOnKey<TKey>(Expression<Func<TTarget, TKey>> targetKey, Expression<Func<TSource, TKey>> sourceKey)
Parameters
Type |
Name |
Description |
Expression<Func<TTarget, TKey>> |
targetKey |
|
Expression<Func<TSource, TKey>> |
sourceKey |
|
Returns
Type Parameters
|
Improve this Doc
View Source
AddOnPredicate(Expression<Func<TTarget, TSource, Boolean>>)
Declaration
public MergeDefinition<TTarget, TSource> AddOnPredicate(Expression<Func<TTarget, TSource, bool>> matchPredicate)
Parameters
Type |
Name |
Description |
Expression<Func<TTarget, TSource, System.Boolean>> |
matchPredicate |
|
Returns
|
Improve this Doc
View Source
AddOperation(MergeDefinition<TTarget, TSource>.Operation)
Declaration
public MergeDefinition<TTarget, TSource> AddOperation(MergeDefinition<TTarget, TSource>.Operation operation)
Parameters
Returns
|
Improve this Doc
View Source
AddSource<TNewSource>(IEnumerable<TNewSource>)
Declaration
public MergeDefinition<TTarget, TNewSource> AddSource<TNewSource>(IEnumerable<TNewSource> source)
where TNewSource : class
Parameters
Type |
Name |
Description |
IEnumerable<TNewSource> |
source |
|
Returns
Type Parameters
Name |
Description |
TNewSource |
|
|
Improve this Doc
View Source
AddSource<TNewSource>(IQueryable<TNewSource>)
Declaration
public MergeDefinition<TTarget, TNewSource> AddSource<TNewSource>(IQueryable<TNewSource> source)
where TNewSource : class
Parameters
Type |
Name |
Description |
IQueryable<TNewSource> |
source |
|
Returns
Type Parameters
Name |
Description |
TNewSource |
|
Implements
Extension Methods