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