Show / Hide Table of Contents

    SqlServerExtensions Class

    .NET Standard 2.x

    Contains the SqlServer extension methods that enable you to use an IDataContextOptions<TAdoDbContext> object to configure the context to connect to a SqlServer database.

    Namespace: SnapObjects.Data.SqlServer

    Assembly: SnapObjects.Data.SqlServer.dll

    Syntax

    public static class SqlServerExtensions
    

    Methods

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