This file contains hidden or 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
/// <summary> | |
/// Represents a connection string that is guaranteed to have been altered to enable asynchronous processing. | |
/// </summary> | |
public sealed class SqlAsyncConnectionString | |
{ | |
private readonly string _connectionString; | |
/// <summary> | |
/// Creates a connection string prepared for enabling asynchronous processing with an optional connection timeout. | |
/// </summary> |
This file contains hidden or 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
public struct RFC3339DateTime : IEquatable<RFC3339DateTime>, IComparable<RFC3339DateTime> | |
{ | |
private readonly DateTimeOffset _value; | |
private static readonly string[] _formats = new string[] { "yyyy-MM-ddTHH:mm:ssK", "yyyy-MM-ddTHH:mm:ss.ffK", "yyyy-MM-ddTHH:mm:ssZ", "yyyy-MM-ddTHH:mm:ss.ffZ" }; | |
public RFC3339DateTime(string rfc3339FormattedDateTime) | |
{ | |
DateTimeOffset tmp; | |
if (!DateTimeOffset.TryParseExact(rfc3339FormattedDateTime, _formats, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.AssumeUniversal, out tmp)) |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
namespace MyProject | |
{ | |
public class UtilityTest | |
{ |
This file contains hidden or 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
Moved to https://github.com/JamesDunne/QueryAshxClient |
This file contains hidden or 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
<#@ template debug="false" hostspecific="false" language="C#" #> | |
<#@ assembly name="System.Core.dll" #> | |
<#@ import namespace="System.Linq" #> | |
<#@ output extension=".generated.cs" #><# | |
// Describe the immutable model types to generate: | |
var types = new[] { | |
new { | |
name = "ImmutableSample", | |
comment = "A complete commit object.", | |
idType = "int", |
NewerOlder