Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考

 

ULConnection 类

表示与 UltraLite.NET 数据库的连接。此类无法继承。

语法
Visual Basic
Public NotInheritable Class ULConnection
  Inherits DbConnection
C#
public sealed class ULConnection: DbConnection
注释

要使用 UltraLite.NET 的 UltraLite 引擎运行时,请在使用任何其它 UltraLite.NET API 之前将 ULDatabaseManager.RuntimeType 设置为适当的值。

可使用 ULConnection.Open 打开与现有数据库的连接。

您必须打开一个连接,然后才可执行其它操作,而且在连接上完成所有操作之后,必须在应用程序终止前关闭该连接。此外,必须在关闭连接前关闭在该连接上打开的所有结果集和表。

可以使用已打开连接的 ULConnection.Schema 访问数据库的模式。

Implements: System.Data.IDbCommand、System.IDisposable

另请参见

ULConnection 成员
ULConnection 构造函数
INVALID_DATABASE_ID 字段
ConnectionString 属性
ConnectionTimeout 属性
DataSource 属性
Database 属性
DatabaseID 属性
DatabaseManager 属性
GlobalAutoIncrementUsage 属性
LastIdentity 属性
Schema 属性
ServerVersion 属性
State 属性
SyncParms 属性
SyncResult 属性
BeginTransaction 方法
CancelGetNotification 方法
ChangeDatabase 方法
ChangeEncryptionKey 方法
ChangePassword 方法
Close 方法
CountUploadRows 方法
CreateCommand 方法
CreateNotificationQueue 方法
DeclareEvent 方法
DestroyNotificationQueue 方法
ExecuteNextSQLPassthroughScript 方法
ExecuteSQLPassthroughScripts 方法
ExecuteTable 方法
GetLastDownloadTime 方法
GetNewUUID 方法
GetNotification 方法
GetNotificationParameter 方法
GetSQLPassthroughScriptCount 方法
GetSchema 方法
GrantConnectTo 方法
Open 方法
RegisterForEvent 方法
ResetLastDownloadTime 方法
RevokeConnectFrom 方法
RollbackPartialDownload 方法
SendNotification 方法
StartSynchronizationDelete 方法
StopSynchronizationDelete 方法
Synchronize 方法
TriggerEvent 方法
ValidateDatabase 方法
InfoMessage 事件
StateChange 事件