73 references to SqlVersion
System.Data.Entity (73)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (7)
33
internal static string GenerateUpdateSql(DbUpdateCommandTree tree,
SqlVersion
sqlVersion, out List<SqlParameter> parameters)
90
internal static string GenerateDeleteSql(DbDeleteCommandTree tree,
SqlVersion
sqlVersion, out List<SqlParameter> parameters)
108
internal static string GenerateInsertSql(DbInsertCommandTree tree,
SqlVersion
sqlVersion, out List<SqlParameter> parameters)
238
private static bool UseGeneratedValuesVariable(DbInsertCommandTree tree,
SqlVersion
sqlVersion, ExpressionTranslator translator)
241
if (sqlVersion >
SqlVersion
.Sql8 && tree.Returning != null)
463
bool preserveMemberValues,
SqlVersion
version)
480
private readonly
SqlVersion
_version;
System\Data\SqlClient\SqlGen\SqlGenerator.cs (13)
338
private
SqlVersion
sqlVersion;
339
internal
SqlVersion
SqlVersion
392
private SqlGenerator(
SqlVersion
sqlVersion)
408
internal static string GenerateSql(DbCommandTree tree,
SqlVersion
sqlVersion, out List<SqlParameter> parameters, out CommandType commandType, out HashSet<string> paramsToForceNonUnicode)
501
if (this.SqlVersion ==
SqlVersion
.Sql8)
592
Debug.Assert(this.SqlVersion !=
SqlVersion
.Sql8, "DbApplyExpression when translating for SQL Server 2000.");
1218
Debug.Assert(this.SqlVersion !=
SqlVersion
.Sql8, "DbExceptExpression when translating for SQL Server 2000.");
1567
Debug.Assert(this.SqlVersion !=
SqlVersion
.Sql8, "DbIntersectExpression when translating for SQL Server 2000.");
1693
Debug.Assert(!((this.SqlVersion ==
SqlVersion
.Sql8) && (e.Limit is DbParameterReferenceExpression)), "DbLimitExpression.Limit is DbParameterReferenceExpression for SQL Server 2000.");
2245
else if ((this.SqlVersion ==
SqlVersion
.Sql8) && !result.OrderBy.IsEmpty)
2456
Debug.Assert(this.SqlVersion !=
SqlVersion
.Sql8, "DbSkipExpression when translating for SQL Server 2000.");
3822
internal static string GenerateSqlForStoreType(
SqlVersion
sqlVersion, TypeUsage storeTypeUsage)
4372
private static void AssertKatmaiOrNewer(
SqlVersion
sqlVersion, PrimitiveTypeKind primitiveTypeKind)
System\Data\SqlClient\SqlGen\TopClause.cs (2)
85
if (sqlGenerator.SqlVersion !=
SqlVersion
.Sql8)
92
if (sqlGenerator.SqlVersion !=
SqlVersion
.Sql8)
System\Data\SqlClient\SqlProviderManifest.cs (15)
37
private
SqlVersion
_version =
SqlVersion
.Sql9;
69
internal
SqlVersion
SqlVersion
89
if (this._version ==
SqlVersion
.Sql8)
170
if (this._version ==
SqlVersion
.Sql10)
177
Debug.Assert((this._version ==
SqlVersion
.Sql8) || (this._version ==
SqlVersion
.Sql9), "Found verion other than Sql 8, 9 or 10");
193
if (this._version ==
SqlVersion
.Sql8) {
216
if (this._version ==
SqlVersion
.Sql10)
224
if(this._version ==
SqlVersion
.Sql8)
605
if (_version !=
SqlVersion
.Sql8)
648
if (_version !=
SqlVersion
.Sql8)
677
if (_version !=
SqlVersion
.Sql8)
712
if ((this.SqlVersion !=
SqlVersion
.Sql8) && (this.SqlVersion !=
SqlVersion
.Sql9))
System\Data\SqlClient\SqlProviderServices.cs (21)
95
SqlVersion
sqlVersion = sqlManifest.SqlVersion;
283
SqlVersion
tokenVersion = SqlVersionUtils.GetSqlVersion(versionHint);
286
if (tokenVersion <
SqlVersion
.Sql10)
321
internal static SqlParameter CreateSqlParameter(string name, TypeUsage type, ParameterMode mode, object value, bool preventTruncation,
SqlVersion
version) {
442
private static SqlDbType GetSqlDbType(TypeUsage type, bool isOutParam,
SqlVersion
version, out int? size, out byte? precision, out byte? scale, out string udtName) {
575
private static int GetDefaultStringMaxLength(
SqlVersion
version, SqlDbType type)
578
if (version <
SqlVersion
.Sql9)
596
private static int GetDefaultBinaryMaxLength(
SqlVersion
version)
599
if (version <
SqlVersion
.Sql9)
703
SqlVersion
version = SqlVersionUtils.GetSqlVersion(providerManifestToken);
726
SqlVersion
sqlVersion = GetSqlVersion(storeItemCollection);
774
private static
SqlVersion
GetSqlVersion(StoreItemCollection storeItemCollection)
781
SqlVersion
sqlVersion = sqlManifest.SqlVersion;
927
SqlVersion
sqlVersion = SqlVersionUtils.GetSqlVersion(conn);
928
string databaseExistsScript = SqlDdlBuilder.CreateCountDatabasesBasedOnFileNameScript(fileName, useDeprecatedSystemTable: sqlVersion ==
SqlVersion
.Sql8);
949
SqlVersion
sqlVersion = SqlVersionUtils.GetSqlVersion(conn);
950
string databaseExistsScript = SqlDdlBuilder.CreateDatabaseExistsScript(databaseName, useDeprecatedSystemTable: sqlVersion ==
SqlVersion
.Sql8);
994
SqlVersion
sqlVersion = SqlVersionUtils.GetSqlVersion(conn);
995
string getDatabaseNamesScript = SqlDdlBuilder.CreateGetDatabaseNamesBasedOnFileNameScript(fullFileName, sqlVersion ==
SqlVersion
.Sql8);
1036
private static string CreateObjectsScript(
SqlVersion
version, StoreItemCollection storeItemCollection)
1038
return SqlDdlBuilder.CreateObjectsScript(storeItemCollection, createSchemas: version !=
SqlVersion
.Sql8);
System\Data\SqlClient\SqlVersion.cs (15)
51
internal static
SqlVersion
GetSqlVersion(SqlConnection connection)
57
return
SqlVersion
.Sql10;
61
return
SqlVersion
.Sql9;
66
return
SqlVersion
.Sql8;
70
internal static string GetVersionHint(
SqlVersion
version)
74
case
SqlVersion
.Sql8:
77
case
SqlVersion
.Sql9:
80
case
SqlVersion
.Sql10:
88
internal static
SqlVersion
GetSqlVersion(string versionHint)
95
return
SqlVersion
.Sql8;
98
return
SqlVersion
.Sql9;
101
return
SqlVersion
.Sql10;
108
internal static bool IsPreKatmai(
SqlVersion
sqlVersion)
110
return sqlVersion ==
SqlVersion
.Sql8 || sqlVersion ==
SqlVersion
.Sql9;