dotConnect for Zoho Books Documentation
Devart.Data.ZohoBooks Namespace / ZohoBooksProviderFactory Class
Members Example

In This Topic
    ZohoBooksProviderFactory Class
    In This Topic
    Represents a factory required to create inheritors of generic base classes to use with dotConnect for Zoho Books.
    Syntax
    'Declaration
     
    Public Class ZohoBooksProviderFactory 
       Inherits Devart.Data.SqlShimProviderFactory
       Implements System.IServiceProvider 
    public class ZohoBooksProviderFactory : Devart.Data.SqlShimProviderFactory, System.IServiceProvider  
    Remarks

    You can use ZohoBooksProviderFactory class to implement a code where user chooses which data source to use.

    To obtain an instance of the class you can use the DbProviderFactories.GetFactory method with the invariant name Devart.Data.ZohoBooks.

    Example
    This sample routine creates and returns Devart.Common.DbConnectionBase object.
    public DbConnection GetConnectionBaseClass2(DbProviderFactory factory)
    {
    // if our factory supports creating a DbConnection, return it.
    if ((factory.SupportedClasses & DbProviderSupportedClasses.DbConnection) > 0)
      return factory.CreateConnection();
    else
      return null;
    }
    Public Function GetConnectionBaseClass2(ByVal factory As DbProviderFactory) As DbConnection
      'if our factory supports creating a DbConnection, return it.
      If ((factory.SupportedClasses And DbProviderSupportedClasses.DbConnection) > 0) Then
        Return factory.CreateConnection()
      Else
        Return Nothing
      End If
    End Function
    Inheritance Hierarchy

    System.Object
       System.Data.Common.DbProviderFactory
          Devart.Data.SqlShimProviderFactory
             Devart.Data.ZohoBooks.ZohoBooksProviderFactory

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also