Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Drizin/DapperQueryBuilder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Drizin/DapperQueryBuilder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 31 files changed
  • 1 contributor

Commits on Jul 10, 2023

  1. Major rewrite (v2.x):

    Most of the String Interpolation was moved to new project InterpolatedSql (https://github.com/Drizin/InterpolatedSql), which is ORM-agnostic (does not depend on Dapper) and has InterpolatedStringHandler support (a little faster than using regex, only available for net6.0+)
    
    Refs #61 - Major rewrite
    
    Major changes:
    - CommandBuilder is now called SqlBuilder. Most logic was moved to this new project (InterpolatedSql.InterpolatedSqlBuilder). InterpolatedStatement was also moved to new project.
    - Helpers like Filters were also moved to new project
    - ParameterInfos is now called ParametersDictionary (now property is named Parameters - but DapperParameters still works)
    - Since InterpolatedSqlBuilder is agnostic, the arguments are sometimes stored in wrappers like StringParameterInfo (for strings), and then later they are mapped back to types that Dapper understands (DbString).
    
    Minor changes:
    - Auto adjustment of multiline strings now is disabled by default (the only change is aesthetic - no functional changes) - users should prefer using Raw String Literals which allow multiline strings.
    - Tests were adjusted to use Raw String Literals
    Drizin committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    ecab5c3 View commit details
    Browse the repository at this point in the history
Loading