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.
EntityFrameworkCore.Jet/test/EFCore.Jet.FunctionalTests/TestUtilities/AssertSqlHelper.cs

29 lines
1.0 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;
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;
}
}