• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / FluentCommand / 9419132334

07 Jun 2024 03:04PM UTC coverage: 50.031% (-4.0%) from 54.074%
9419132334

push

github

pwelter34
fix test

1844 of 4399 branches covered (41.92%)

Branch coverage included in aggregate %.

4511 of 8303 relevant lines covered (54.33%)

399.32 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/FluentCommand.SqlServer/Merge/DataMergeExtensions.cs
1
namespace FluentCommand.Merge;
2

3
/// <summary>
4
/// <see cref="IDataSession"/> extension methods
5
/// </summary>
6
public static class DataMergeExtensions
7
{
8
    /// <summary>
9
    /// Starts a data merge operation with the specified destination table name.
10
    /// </summary>
11
    /// <param name="session">The session to use for the merge.</param>
12
    /// <param name="destinationTable">Name of the destination table on the server.</param>
13
    /// <returns>
14
    /// A fluent <see langword="interface" /> to a <see cref="DataMerge " /> operation.
15
    /// </returns>
16
    public static IDataMerge MergeData(this IDataSession session, string destinationTable)
17
    {
18
        var definition = new DataMergeDefinition();
14✔
19
        definition.TargetTable = destinationTable;
14✔
20

21
        return MergeData(session, definition);
14✔
22
    }
23

24
    /// <summary>
25
    /// Starts a data merge operation with the specified <typeparamref name="TEntity"/>
26
    /// </summary>
27
    /// <param name="session">The session to use for the merge.</param>
28
    /// <returns>
29
    /// A fluent <see langword="interface" /> to a <see cref="DataMerge " /> operation.
30
    /// </returns>
31
    public static IDataMerge MergeData<TEntity>(this IDataSession session)
32
    {
33
        var definition = DataMergeDefinition.Create<TEntity>();
×
34
        return MergeData(session, definition);
×
35
    }
36

37
    /// <summary>
38
    /// Starts a data merge operation with the specified <paramref name="mergeDefinition"/>.
39
    /// </summary>
40
    /// <param name="session">The session to use for the merge.</param>
41
    /// <param name="mergeDefinition">The data merge definition.</param>
42
    /// <returns>
43
    /// A fluent <see langword="interface" /> to a <see cref="DataMerge " /> operation.
44
    /// </returns>
45
    public static IDataMerge MergeData(this IDataSession session, DataMergeDefinition mergeDefinition)
46
    {
47
        return new DataMerge(session, mergeDefinition);
14✔
48
    }
49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc