Show / Hide Table of Contents

    SqlServerExtensions.UseSqlServer Method

    .NET Standard 2.x

    Configures the context to connect to a SqlServer database.

    Namespace: SnapObjects.Data.SqlServer

    Assembly: SnapObjects.Data.SqlServer.dll

    Overloads

    Method Description
    UseSqlServer<TAdoDbContext>(this IDataContextOptions<TAdoDbContext> contextOptions, string connectionString) Configures the context to connect to a SqlServer database.
    UseSqlServer<TAdoDbContext>(this IDataContextOptions<TAdoDbContext> contextOptions, string connectionString, Action<SqlServerDataContextOptions<TAdoDbContext>> options) Configures the context to connect to a SqlServer database.
    UseSqlServer<TAdoDbContext>(this IDataContextOptions<TAdoDbContext> contextOptions, IConfiguration configuration, string connectionKey) Configures the context to connect to a SqlServer database.
    Back to top Generated by Appeon