Represents a set of methods for creating instances of the iAnywhere.Data.UltraLite provider's implementation of the data source classes. This is a static class and so cannot be inherited or instantiated.
Visual Basic Public NotInheritable Class ULFactory Inherits DbProviderFactory
C# public sealed class ULFactory: DbProviderFactory
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() // 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().
Restrictions: The ULFactory class is not available in the .NET Compact Framework 2.0.
Inherits: System.Data.Common.DbProviderFactory
ULFactory members
Instance field
CanCreateDataSourceEnumerator property
CreateCommand method
CreateCommandBuilder method
CreateConnection method
CreateConnectionStringBuilder method
CreateDataAdapter method
CreateParameter method
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |