Skip to content

How to define SqlProvider #312

Closed Answered by phnx47
alexanlp asked this question in Q&A
Sep 20, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

@alexanlp like this:

var repository1 = new UserRepository(connection, new SqlGenerator<User>(SqlProvider.MSSQL));
var repository2 = new UserRepository(connection, new SqlGenerator<User>(SqlProvider.MySQL));

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@phnx47
Comment options

Answer selected by alexanlp
Comment options

You must be logged in to vote
1 reply
@phnx47
Comment options

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

This discussion was converted from issue #311 on September 21, 2023 02:01.