You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using System;
|
|
using EntityFrameworkCore.Jet.Data;
|
|
|
|
namespace EntityFrameworkCore.Jet.FunctionalTests.TestUtilities
|
|
{
|
|
public static class AssertSqlHelper
|
|
{
|
|
static AssertSqlHelper()
|
|
{
|
|
DataAccessProviderType = TestEnvironment.DataAccessProviderType;
|
|
}
|
|
|
|
public static DataAccessProviderType DataAccessProviderType { get; set; }
|
|
|
|
public static string Parameter(string name)
|
|
=> Parameter(name, DataAccessProviderType);
|
|
|
|
public static string Parameter(string name, DataAccessProviderType dataAccessProviderType)
|
|
=> dataAccessProviderType == DataAccessProviderType.Odbc
|
|
? name //"?" EF10 was changed to log the command before we modify the sql to use unnamed parameters
|
|
: name;
|
|
|
|
public static string Declaration(string fullDeclaration)
|
|
=> Declaration(fullDeclaration, DataAccessProviderType);
|
|
//TODO:confirm which way odbc and oledb do this
|
|
public static string Declaration(string fullDeclaration, DataAccessProviderType dataAccessProviderType)
|
|
=> fullDeclaration;
|
|
}
|
|
} |