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.
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System;
|
|
using System.Data.Jet;
|
|
|
|
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;
|
|
|
|
public static string Declaration(string fullDeclaration)
|
|
=> Declaration(fullDeclaration, DataAccessProviderType);
|
|
|
|
public static string Declaration(string fullDeclaration, DataAccessProviderType dataAccessProviderType)
|
|
=> dataAccessProviderType == DataAccessProviderType.Odbc
|
|
? string.Empty
|
|
: fullDeclaration;
|
|
}
|
|
} |