DmMerge
Namespace: MJCZone.DapperMatic.Dml
Assembly: MJCZone.DapperMatic
Summary
Fills relation properties from rows already in memory, without a query: by a <c>[DmRelation]</c>'s keys, fixed values and condition, or by key selectors given explicitly.
static public
Contents
Methods (9)
Methods
| Method | Summary |
|---|---|
| Into | Sets each owner's relation of one row to the row its keys match, or null. |
| Into | Sets each owner's relation of one row to the row its keys match, or null. |
| Into | Sets each owner's many-to-many collection to the rows the link rows join it to: empty if none do. |
| Into | Sets each owner's property to the row whose key equals the owner's, or null. |
| Into | Sets each owner's property to the row whose key equals the owner's, or null. |
| GetType | |
| ToString | |
| Equals | |
| GetHashCode |
Into
Sets each owner's relation of one row to the row its keys match, or null.
csharp
void Into(IEnumerable{``0} owners, Func{``0 relation, ``1}} others)Parameters
- owners (IEnumerable{``0}) - The owners.
- relation (Func{``0) - .
- others (``1}}) - The related rows.
Into
Sets each owner's relation of one row to the row its keys match, or null.
csharp
void Into(IEnumerable{``0} owners, Func{``0 relation, ``1}} others)Parameters
- owners (IEnumerable{``0}) - The owners.
- relation (Func{``0) - .
- others (``1}}) - The related rows.
Into
Sets each owner's many-to-many collection to the rows the link rows join it to: empty if none do.
csharp
void Into(
IEnumerable{``0} owners,
Func{``0 relation,
IEnumerable{``1}}} others,
IEnumerable{``1} links)Parameters
- owners (IEnumerable{``0}) - The owners.
- relation (Func{``0) - .
- others (IEnumerable{``1}}}) - The related rows.
- links (IEnumerable{``1}) - The link rows.
Into
Sets each owner's property to the row whose key equals the owner's, or null.
csharp
void Into(
IEnumerable{``0} owners,
Func{``0 property,
``1}} others,
IEnumerable{``1} ownerKey,
Func{``0 otherKey)Parameters
- owners (IEnumerable{``0}) - The owners.
- property (Func{``0) - The property to set, a relation or not.
- others (``1}}) - The related rows.
- ownerKey (IEnumerable{``1}) - An owner's key.
- otherKey (Func{``0) - A related row's key.
Into
Sets each owner's property to the row whose key equals the owner's, or null.
csharp
void Into(
IEnumerable{``0} owners,
Func{``0 property,
``1}} others,
IEnumerable{``1} ownerKey,
Func{``0 otherKey)Parameters
- owners (IEnumerable{``0}) - The owners.
- property (Func{``0) - The property to set, a relation or not.
- others (``1}}) - The related rows.
- ownerKey (IEnumerable{``1}) - An owner's key.
- otherKey (Func{``0) - A related row's key.
GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()