You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
883 B
31 lines
883 B
using System.Collections.Generic;
|
|
|
|
namespace Dapper
|
|
{
|
|
partial class SqlMapper
|
|
{
|
|
/// <summary>
|
|
/// Represents a placeholder for a value that should be replaced as a literal value in the resulting sql
|
|
/// </summary>
|
|
internal struct LiteralToken
|
|
{
|
|
/// <summary>
|
|
/// The text in the original command that should be replaced
|
|
/// </summary>
|
|
public string Token { get; }
|
|
|
|
/// <summary>
|
|
/// The name of the member referred to by the token
|
|
/// </summary>
|
|
public string Member { get; }
|
|
|
|
internal LiteralToken(string token, string member)
|
|
{
|
|
Token = token;
|
|
Member = member;
|
|
}
|
|
|
|
internal static readonly IList<LiteralToken> None = new LiteralToken[0];
|
|
}
|
|
}
|
|
}
|
|
|