-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Expand file tree
/
Copy pathSqlMapper.LiteralToken.cs
More file actions
32 lines (28 loc) · 952 Bytes
/
SqlMapper.LiteralToken.cs
File metadata and controls
32 lines (28 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
namespace Dapper
{
public static partial class SqlMapper
{
/// <summary>
/// Represents a placeholder for a value that should be replaced as a literal value in the resulting sql
/// </summary>
internal readonly 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 IList<LiteralToken> None => Array.Empty<LiteralToken>();
}
}
}