Class OracleTools
- Namespace
- LinqToDB.DataProvider.Oracle
- Assembly
- linq2db.dll
public static class OracleTools
- Inheritance
-
OracleTools
Properties
AutoDetectProvider
public static bool AutoDetectProvider { get; set; }
Property Value
DefaultBulkCopyType
[Obsolete("Use OracleOptions.Default.BulkCopyType instead.")]
public static BulkCopyType DefaultBulkCopyType { get; set; }
Property Value
DefaultVersion
public static OracleVersion DefaultVersion { get; set; }
Property Value
DontEscapeLowercaseIdentifiers
Gets or sets flag to tell LinqToDB to quote identifiers, if they contain lowercase letters.
Default value: false
.
This flag is added for backward compatibility and not recommended for use with new applications.
[Obsolete("Use OracleOptions.Default.DontEscapeLowercaseIdentifiers instead.")]
public static bool DontEscapeLowercaseIdentifiers { get; set; }
Property Value
UseAlternativeBulkCopy
Specifies type of multi-row INSERT operation to generate for RowByRow bulk copy mode. Default value: InsertAll.
[Obsolete("Use OracleOptions.Default.AlternativeBulkCopy instead.")]
public static AlternativeBulkCopy UseAlternativeBulkCopy { get; set; }
Property Value
Methods
AsOracle<TSource>(ITable<TSource>)
[Sql.QueryExtension(null, Sql.QueryExtensionScope.None, typeof(NoneExtensionBuilder))]
public static IOracleSpecificTable<TSource> AsOracle<TSource>(this ITable<TSource> table) where TSource : notnull
Parameters
table
ITable<TSource>
Returns
- IOracleSpecificTable<TSource>
Type Parameters
TSource
AsOracle<TSource>(IQueryable<TSource>)
[Sql.QueryExtension(null, Sql.QueryExtensionScope.None, typeof(NoneExtensionBuilder))]
public static IOracleSpecificQueryable<TSource> AsOracle<TSource>(this IQueryable<TSource> source) where TSource : notnull
Parameters
source
IQueryable<TSource>
Returns
- IOracleSpecificQueryable<TSource>
Type Parameters
TSource
CreateDataConnection(DbConnection, OracleVersion, OracleProvider)
public static DataConnection CreateDataConnection(DbConnection connection, OracleVersion version = OracleVersion.AutoDetect, OracleProvider provider = OracleProvider.Managed)
Parameters
connection
DbConnectionversion
OracleVersionprovider
OracleProvider
Returns
CreateDataConnection(DbTransaction, OracleVersion, OracleProvider)
public static DataConnection CreateDataConnection(DbTransaction transaction, OracleVersion version = OracleVersion.AutoDetect, OracleProvider provider = OracleProvider.Managed)
Parameters
transaction
DbTransactionversion
OracleVersionprovider
OracleProvider
Returns
CreateDataConnection(string, OracleVersion, OracleProvider)
public static DataConnection CreateDataConnection(string connectionString, OracleVersion version = OracleVersion.AutoDetect, OracleProvider provider = OracleProvider.Managed)
Parameters
connectionString
stringversion
OracleVersionprovider
OracleProvider
Returns
GetDataProvider(OracleVersion, OracleProvider, string?)
public static IDataProvider GetDataProvider(OracleVersion version = OracleVersion.AutoDetect, OracleProvider provider = OracleProvider.Managed, string? connectionString = null)
Parameters
version
OracleVersionprovider
OracleProviderconnectionString
string
Returns
GetXmlData<T>(DataOptions, MappingSchema, IEnumerable<T>)
public static string GetXmlData<T>(DataOptions options, MappingSchema mappingSchema, IEnumerable<T> data)
Parameters
options
DataOptionsmappingSchema
MappingSchemadata
IEnumerable<T>
Returns
Type Parameters
T
OracleXmlTable<T>(IDataContext, IEnumerable<T>)
public static ITable<T> OracleXmlTable<T>(this IDataContext dataContext, IEnumerable<T> data) where T : class
Parameters
dataContext
IDataContextdata
IEnumerable<T>
Returns
- ITable<T>
Type Parameters
T
OracleXmlTable<T>(IDataContext, Func<string>)
public static ITable<T> OracleXmlTable<T>(this IDataContext dataContext, Func<string> xmlData) where T : class
Parameters
dataContext
IDataContextxmlData
Func<string>
Returns
- ITable<T>
Type Parameters
T
OracleXmlTable<T>(IDataContext, string)
public static ITable<T> OracleXmlTable<T>(this IDataContext dataContext, string xmlData) where T : class
Parameters
dataContext
IDataContextxmlData
string
Returns
- ITable<T>
Type Parameters
T