Table of Contents

Class SybaseTools

Namespace
LinqToDB.DataProvider.Sybase
Assembly
linq2db.dll
public static class SybaseTools
Inheritance
SybaseTools

Properties

DefaultBulkCopyType

Using ProviderSpecific mode with bit and identity fields could lead to following errors:

  • bit: false inserted into bit field for first record even if true provided;
  • identity: bulk copy operation fail with exception: "Bulk insert failed. Null value is not allowed in not null column.". Those are provider bugs and could be fixed in latest versions.
[Obsolete("Use SybaseOptions.Default.BulkCopyType instead.")]
public static BulkCopyType DefaultBulkCopyType { get; set; }

Property Value

BulkCopyType

DetectedProviderName

public static string DetectedProviderName { get; }

Property Value

string

Methods

CreateDataConnection(DbConnection, string?)

public static DataConnection CreateDataConnection(DbConnection connection, string? providerName = null)

Parameters

connection DbConnection
providerName string

Returns

DataConnection

CreateDataConnection(DbTransaction, string?)

public static DataConnection CreateDataConnection(DbTransaction transaction, string? providerName = null)

Parameters

transaction DbTransaction
providerName string

Returns

DataConnection

CreateDataConnection(string, string?)

public static DataConnection CreateDataConnection(string connectionString, string? providerName = null)

Parameters

connectionString string
providerName string

Returns

DataConnection

GetDataProvider(string?, string?)

public static IDataProvider GetDataProvider(string? providerName = null, string? assemblyName = null)

Parameters

providerName string
assemblyName string

Returns

IDataProvider

ResolveSybase(Assembly)

public static void ResolveSybase(Assembly assembly)

Parameters

assembly Assembly

ResolveSybase(string)

public static void ResolveSybase(string path)

Parameters

path string