Show / Hide Table of Contents

    OdbcSqlAnywhereExtensions.UseSqlAnywhere<TAdoDbContext>(this IDataContextOptions<TAdoDbContext> contextOptions, IConfiguration configuration, string connectionKey) Method

    .NET Standard 2.x

    Configures the context to connect to an SAP SQL Anywhere database.

    Namespace: SnapObjects.Data.Odbc

    Assembly: SnapObjects.Data.Odbc.dll

    Syntax

    public static IDataContextOptions<TAdoDbContext> UseSqlAnywhere<TAdoDbContext>(this IDataContextOptions<TAdoDbContext> contextOptions, IConfiguration configuration, string connectionKey) where TAdoDbContext : OdbcSqlAnywhereDataContext
    

    Type Parameters

    TAdoDbContext

    The type of context to be configured.

    Parameters

    contextOptions IDataContextOptions<TAdoDbContext>

    The options being used to configure the context.

    configuration IConfiguration

    Represents a set of key/value application configuration properties.

    connectionKey System.String

    A key specified in the connection strings in the specified configuration.

    Returns

    SnapObjects.Data.IDataContextOptions<TAdoDbContext>

    An IDataContextOptions<TAdoDbContext> object which contains options of the DataContext object.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon