Represents a set of methods for creating instances of the iAnywhere.Data.UltraLite provider's implementation of the data source classes.
Public NotInheritable Class ULFactory Inherits System.Data.Common.DbProviderFactory
public sealed class ULFactory : System.Data.Common.DbProviderFactory
All members of ULFactory class, including all inherited members.
Name | Description |
---|---|
Returns a strongly typed System.Data.Common.DbCommand instance. | |
Returns a strongly typed System.Data.Common.DbCommandBuilder instance. | |
Returns a strongly typed System.Data.Common.DbConnection instance. | |
Returns a strongly typed System.Data.Common.DbConnectionStringBuilder instance. | |
Returns a strongly typed System.Data.Common.DbDataAdapter instance. | |
CreateDataSourceEnumerator method (Inherited from System.Data.Common.DbProviderFactory) |
Returns a new instance of the provider's class that implements the System.Data.Common.DbDataSourceEnumerator class. |
Returns a strongly typed System.Data.Common.DbParameter instance. | |
CreatePermission method (Inherited from System.Data.Common.DbProviderFactory) |
Returns a new instance of the provider's class that implements the provider's version of the System.Security.CodeAccessPermission class. |
Returns false to indicate the UltraLite.NET does not support DbDataSourceEnumerator. | |
Represents the singleton instance of the ULFactory class. |
The ULFactory class is not available in the .NET Compact Framework 2.0.
ADO.NET 2.0 adds two new classes, the System.Data.Common.DbProviderFactories class and the System.Data.Common.DbProviderFactory class, to make provider independent code easier to write. To use them with UltraLite.NET specify iAnywhere.Data.UltraLite as the provider invariant name passed to GetFactory. For example:
' Visual Basic Dim factory As DbProviderFactory = _ DbProviderFactories.GetFactory( "iAnywhere.Data.UltraLite" ) Dim conn As DbConnection = _ factory.CreateConnection() |
The following code is the C# language equivalent:
// C# DbProviderFactory factory = DbProviderFactories.GetFactory( "iAnywhere.Data.UltraLite" ); DbConnection conn = factory.CreateConnection(); |
In this example, conn is created as an ULConnection object.
For an explanation of provider factories and generic programming in ADO.NET 2.0, see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/vsgenerics.asp.
UltraLite.NET does not support CreateCommandBuilder(), CreateDataSourceEnumerator(), and CreatePermission().
CreateCommand method
CreateCommandBuilder method
CreateConnection method
CreateConnectionStringBuilder method
CreateDataAdapter method
CreateParameter method
CanCreateDataSourceEnumerator property
Instance field
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |