Skip to content

how to using Microsoft.Data.SqlClient fluent-nhibernate #490

Answered by jornhd
rogeryamato asked this question in Q&A
Discussion options

You must be logged in to vote

You need to add .Driver<MicrosoftDataSqlClientDriver>() in the configuration:

Fluently.Configure()
    .Database(
        MsSqlConfiguration.MsSql2012
            .Driver<MicrosoftDataSqlClientDriver>()
            .ConnectionString(connectionString)
    )
    .Mappings(...)
    .BuildSessionFactory();

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@storm-caller
Comment options

@hazzik
Comment options

@hubocan
Comment options

Answer selected by hazzik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #488 on February 16, 2021 06:24.