dotConnect for Snowflake Documentation
Devart.Data.Snowflake Namespace / SnowflakeProviderFactory Class
Members Example

On this page
    SnowflakeProviderFactory Class
    On this page
    Represents a factory required to create inheritors of generic base classes to use with dotConnect for Snowflake.
    Syntax
    'Declaration
     
    Public Class SnowflakeProviderFactory 
       Inherits Devart.Data.SqlShimProviderFactory
       Implements System.IServiceProvider 
    public class SnowflakeProviderFactory : Devart.Data.SqlShimProviderFactory, System.IServiceProvider  
    Remarks

    You can use SnowflakeProviderFactory 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.Snowflake.

    Example
    This sample routine creates and returns Devart.Common.DbConnectionBase object.
    public DbConnection GetConnectionBaseClass2(DbProviderFactory factory)
    {
      return factory.CreateConnection();
    }
    Public Function GetConnectionBaseClass2(ByVal factory As DbProviderFactory) As DbConnection
      Return factory.CreateConnection()
    End Function
    Inheritance Hierarchy

    System.Object
       System.Data.Common.DbProviderFactory
          Devart.Data.SqlShimProviderFactory
             Devart.Data.Snowflake.SnowflakeProviderFactory

    See Also