-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSqlServerDialect.cs
More file actions
28 lines (26 loc) · 1.19 KB
/
SqlServerDialect.cs
File metadata and controls
28 lines (26 loc) · 1.19 KB
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
#region Copyright (c) 2025
// RM / Hybrid ORM: Resource Manager / Hybrid ORM
//
// License: Dual-license
// - Free for educational, research, personal, or nonprofit projects that are not directly or indirectly used to generate revenue
// - Commercial use requires a per-service paid license
//
// Disclaimer: Provided "as-is"; no warranty; author not liable for any damages, data loss, or business interruptions.
// Production use must be fully tested and validated within the enterprise environment.
//
// Contributions: All contributions are voluntary and licensed under this project’s dual-license; may be included in commercial releases.
// See CLA.md for Contributor License Agreement.
//
// For commercial licensing or paid support inquiries: Kenneth Carter
#endregion
namespace SubLight.Sql.SqlServer
{
internal class SqlServerDialect
: ISqlDialect
{
public string FormatParameterName(string name, int index) => $"@{name}_{index}";
public string GetLimitOffsetClause(int? offset, int? limit) =>
$"OFFSET {offset ?? 0} ROWS FETCH NEXT {limit ?? int.MaxValue} ROWS ONLY";
public string QouteIdentifier(string identifier) => $"[{identifier}]";
}
}