2025-03-15 01:51:42 +00:00
|
|
|
|
using System.Data.Common;
|
2025-01-01 23:14:09 +00:00
|
|
|
|
using Elsa.Sql.Client;
|
|
|
|
|
|
using Microsoft.Data.SqlClient;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Elsa.Sql.SqlServer;
|
|
|
|
|
|
|
2025-03-15 01:51:42 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Microsoft SQL server client implementation.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="connectionString"></param>
|
|
|
|
|
|
public class SqlServerClient(string connectionString) : BaseSqlClient(connectionString)
|
2025-01-01 23:14:09 +00:00
|
|
|
|
{
|
2025-03-15 01:51:42 +00:00
|
|
|
|
protected override DbConnection CreateConnection() => new SqlConnection(_connectionString);
|
2025-01-01 23:14:09 +00:00
|
|
|
|
|
2025-03-15 01:51:42 +00:00
|
|
|
|
protected override DbCommand CreateCommand(string query, DbConnection connection) => new SqlCommand(query, (SqlConnection)connection);
|
2025-01-01 23:14:09 +00:00
|
|
|
|
}
|