-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exposed IQueryExecutionOption options via Sql4CdsConnection
- Loading branch information
Showing
19 changed files
with
461 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
MarkMpn.Sql4Cds.Engine/Ado/ConfirmDmlStatementEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Text; | ||
using Microsoft.Xrm.Sdk.Metadata; | ||
|
||
namespace MarkMpn.Sql4Cds.Engine | ||
{ | ||
/// <summary> | ||
/// Contains information about a DML statement (INSERT/UPDATE/DELETE) that is about to be executed | ||
/// </summary> | ||
public class ConfirmDmlStatementEventArgs : CancelEventArgs | ||
{ | ||
/// <summary> | ||
/// Creates a new <see cref="ConfirmDmlStatementEventArgs"/> | ||
/// </summary> | ||
/// <param name="count">The number of records that will be affected</param> | ||
/// <param name="metadata">The metadata of the entity that will be affected</param> | ||
internal ConfirmDmlStatementEventArgs(int count, EntityMetadata metadata) | ||
{ | ||
Count = count; | ||
Metadata = metadata; | ||
} | ||
|
||
/// <summary> | ||
/// Returns the number of records that will be affected by the operation | ||
/// </summary> | ||
public int Count { get; } | ||
|
||
/// <summary> | ||
/// Returns the metadata of the entity that will be affected | ||
/// </summary> | ||
public EntityMetadata Metadata { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Text; | ||
|
||
namespace MarkMpn.Sql4Cds.Engine | ||
{ | ||
/// <summary> | ||
/// Contains information about a page of data that is about to be retrieved | ||
/// </summary> | ||
public class ConfirmRetrieveEventArgs : CancelEventArgs | ||
{ | ||
/// <summary> | ||
/// Creates a new <see cref="ConfirmRetrieveEventArgs"/> | ||
/// </summary> | ||
/// <param name="count">The number of records retrieved so far</param> | ||
public ConfirmRetrieveEventArgs(int count) | ||
{ | ||
Count = count; | ||
} | ||
|
||
/// <summary> | ||
/// Returns the number of records retrieved so far | ||
/// </summary> | ||
public int Count { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MarkMpn.Sql4Cds.Engine | ||
{ | ||
/// <summary> | ||
/// Holds information about the progress of a query | ||
/// </summary> | ||
public class ProgressEventArgs | ||
{ | ||
/// <summary> | ||
/// Creates a new <see cref="ProgressEventArgs"/> | ||
/// </summary> | ||
/// <param name="progress">The percentage of the operation that has completed so far</param> | ||
/// <param name="message">A human-readable status message to display</param> | ||
internal ProgressEventArgs(double? progress, string message) | ||
{ | ||
Progress = progress; | ||
Message = message; | ||
} | ||
|
||
/// <summary> | ||
/// The percentage of the operation that has completed so far | ||
/// </summary> | ||
/// <remarks> | ||
/// This is expressed as a number between 0 and 1. | ||
/// </remarks> | ||
public double? Progress { get; } | ||
|
||
/// <summary> | ||
/// A human-readable status message to display | ||
/// </summary> | ||
public string Message { get; } | ||
} | ||
} |
Oops, something went wrong.