Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #19

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '6.0.x', '7.0.x', '8.0.x' ]
dotnet-version: [ '6.0.x', '7.0.x', '8.0.x' ]
env:
working-directory: ./Dapper.CustomTypeHandlers

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Checkout code
uses: actions/checkout@v4

- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: ${{ matrix.dotnet-version }}

- name: Display dotnet version
run: dotnet --version

- name: Restore dependencies
run: dotnet restore
working-directory: ${{env.working-directory}}
- name: Build
run: dotnet build --no-restore

- name: Build the project
run: dotnet build --configuration Release --no-restore
working-directory: ${{env.working-directory}}
- name: Test
run: dotnet test --no-build --verbosity normal

- name: Run test
run: dotnet test --configuration Release --no-build --verbosity normal
working-directory: ${{env.working-directory}}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<ItemGroup>
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.7" />
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.8" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="nunit" Version="4.1.0" />
<PackageReference Include="nunit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@
<Title>Dapper.CustomTypeHandlers</Title>
<Description>Dapper custom type handlers to serialize/deserialize objects to Xml and Json.</Description>
<PackageTags>dapper orm xml json database sql customhandlers</PackageTags>
<PackageReleaseNotes>Bump System.Text.Json to new version</PackageReleaseNotes>
<RepositoryUrl>https://github.com/kubagdynia/Dapper.CustomTypeHandlers</RepositoryUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/kubagdynia/Dapper.CustomTypeHandlers</PackageProjectUrl>
<PackageIcon>DapperCustomTypeHandlers.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>2024</Copyright>
<Version>2.2.1</Version>
<Copyright>Copyright (c) Jakub Kurłowicz 2023-2024</Copyright>
<Version>2.3.0</Version>
<Authors>Jakub Kurłowicz</Authors>
<PackageReleaseNotes>Including the symbols in the NuGet package.</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EnablePackageValidation>true</EnablePackageValidation>
<!-- If all members are not documented, you can disable the compiler warnings -->
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand All @@ -21,4 +27,15 @@
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\DapperCustomTypeHandlers.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
Binary file added DapperCustomTypeHandlers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dotnet add package Dapper.CustomTypeHandlers

or just copy into the project file to reference the package
```
<PackageReference Include="Dapper.CustomTypeHandlers" Version="6.0.0" />
<PackageReference Include="Dapper.CustomTypeHandlers" Version="2.3.0" />
```

### How to use
Expand Down Expand Up @@ -88,7 +88,7 @@ public async Task SaveBook(Book book)
Every commit or pull request is built and tested on the Continuous Integration system.

To test locally:
- Download and install [.NET 6.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
- Download and install [.NET 8.0 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
- Clone or download source code
```
git clone https://github.com/kubagdynia/Dapper.CustomTypeHandlers.git
Expand All @@ -98,9 +98,15 @@ git clone https://github.com/kubagdynia/Dapper.CustomTypeHandlers.git
dotnet test ./Dapper.CustomTypeHandlers/
```

### Code Examples

- DapperMappers - An example of using Dapper with the custom Xml and Json mappers
https://github.com/kubagdynia/DapperMappers


### Technologies
List of technologies, frameworks and libraries used for implementation:
- [.NET 6.0](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) (platform)
- [.NET 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) (platform)
- [Dapper](https://github.com/StackExchange/Dapper) (micro ORM)
- [System.Text.Json](https://www.nuget.org/packages/System.Text.Json) (JSON serialization/deserialization)
- [NUnit](https://nunit.org/) (testing framework)
Expand Down