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

WebAPI and Dapper Example #2022

Merged
merged 21 commits into from
May 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
174 changes: 76 additions & 98 deletions .idea/.idea.Brighter/.idea/httpRequests/http-requests-log.http

Large diffs are not rendered by default.

165 changes: 165 additions & 0 deletions Brighter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,30 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Salutations_SqliteMigration
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Paramore.Brighter.ServiceActivator.Extensions.Diagnostics", "src\Paramore.Brighter.ServiceActivator.Extensions.Diagnostics\Paramore.Brighter.ServiceActivator.Extensions.Diagnostics.csproj", "{72763FBA-675A-4784-8A57-E69AD41DC685}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebAPI_Dapper", "WebAPI_Dapper", "{202BA107-89D5-4868-AC5A-3527114C0109}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SalutationPorts", "samples\WebAPI_Dapper\SalutationPorts\SalutationPorts.csproj", "{4B889714-78E1-429F-AB98-53A1381F12A7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SalutationEntities", "samples\WebAPI_Dapper\SalutationEntities\SalutationEntities.csproj", "{33C7E2A3-B527-4921-800A-B4CA438BAF6E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SalutationAnalytics", "samples\WebAPI_Dapper\SalutationAnalytics\SalutationAnalytics.csproj", "{ECDB8F7A-2D71-457D-8081-97C43D393FE8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GreetingsWeb", "samples\WebAPI_Dapper\GreetingsWeb\GreetingsWeb.csproj", "{526E4E1A-9E8E-4233-B851-D6172D013AF6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GreetingsPorts", "samples\WebAPI_Dapper\GreetingsPorts\GreetingsPorts.csproj", "{79A46154-4754-48B1-849F-374AD729C040}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GreetingsEntities", "samples\WebAPI_Dapper\GreetingsEntities\GreetingsEntities.csproj", "{4164912F-F69E-4AD7-A521-6D58253B5ABC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Paramore.Brighter.Sqlite.Dapper", "src\Paramore.Brighter.Sqlite.Dapper\Paramore.Brighter.Sqlite.Dapper.csproj", "{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Paramore.Brighter.MySql.Dapper", "src\Paramore.Brighter.MySql.Dapper\Paramore.Brighter.MySql.Dapper.csproj", "{191A929A-0AE4-4E2A-9608-E47F93FA0004}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Paramore.Brighter.Dapper", "src\Paramore.Brighter.Dapper\Paramore.Brighter.Dapper.csproj", "{5FDA646C-30DA-4F13-8399-A3C533D2D16E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Greetings_SqliteMigrations", "samples\WebAPI_Dapper\Greetings_SqliteMigrations\Greetings_SqliteMigrations.csproj", "{026230E1-F388-425A-98CB-6E17C174FE62}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Salutations_SqliteMigrations", "samples\WebAPI_Dapper\Salutations_SqliteMigrations\Salutations_SqliteMigrations.csproj", "{C601A031-963B-4EA9-82C7-1221B1EE9E51}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -1327,6 +1351,138 @@ Global
{72763FBA-675A-4784-8A57-E69AD41DC685}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{72763FBA-675A-4784-8A57-E69AD41DC685}.Release|x86.ActiveCfg = Release|Any CPU
{72763FBA-675A-4784-8A57-E69AD41DC685}.Release|x86.Build.0 = Release|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Debug|x86.ActiveCfg = Debug|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Debug|x86.Build.0 = Debug|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Release|Any CPU.Build.0 = Release|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Release|x86.ActiveCfg = Release|Any CPU
{4B889714-78E1-429F-AB98-53A1381F12A7}.Release|x86.Build.0 = Release|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Debug|x86.ActiveCfg = Debug|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Debug|x86.Build.0 = Debug|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Release|Any CPU.Build.0 = Release|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Release|x86.ActiveCfg = Release|Any CPU
{33C7E2A3-B527-4921-800A-B4CA438BAF6E}.Release|x86.Build.0 = Release|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Debug|x86.ActiveCfg = Debug|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Debug|x86.Build.0 = Debug|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Release|Any CPU.Build.0 = Release|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Release|x86.ActiveCfg = Release|Any CPU
{ECDB8F7A-2D71-457D-8081-97C43D393FE8}.Release|x86.Build.0 = Release|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Debug|x86.ActiveCfg = Debug|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Debug|x86.Build.0 = Debug|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Release|Any CPU.Build.0 = Release|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Release|x86.ActiveCfg = Release|Any CPU
{526E4E1A-9E8E-4233-B851-D6172D013AF6}.Release|x86.Build.0 = Release|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Debug|Any CPU.Build.0 = Debug|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Debug|x86.ActiveCfg = Debug|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Debug|x86.Build.0 = Debug|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Release|Any CPU.ActiveCfg = Release|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Release|Any CPU.Build.0 = Release|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Release|x86.ActiveCfg = Release|Any CPU
{79A46154-4754-48B1-849F-374AD729C040}.Release|x86.Build.0 = Release|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Debug|x86.ActiveCfg = Debug|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Debug|x86.Build.0 = Debug|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Release|Any CPU.Build.0 = Release|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Release|x86.ActiveCfg = Release|Any CPU
{4164912F-F69E-4AD7-A521-6D58253B5ABC}.Release|x86.Build.0 = Release|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Debug|x86.ActiveCfg = Debug|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Debug|x86.Build.0 = Debug|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Release|Any CPU.Build.0 = Release|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Release|x86.ActiveCfg = Release|Any CPU
{1DEBF15F-AA1B-4A9C-B1C3-7190E0988C86}.Release|x86.Build.0 = Release|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Debug|Any CPU.Build.0 = Debug|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Debug|x86.ActiveCfg = Debug|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Debug|x86.Build.0 = Debug|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Release|Any CPU.ActiveCfg = Release|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Release|Any CPU.Build.0 = Release|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Release|x86.ActiveCfg = Release|Any CPU
{191A929A-0AE4-4E2A-9608-E47F93FA0004}.Release|x86.Build.0 = Release|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Debug|x86.ActiveCfg = Debug|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Debug|x86.Build.0 = Debug|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Release|Any CPU.Build.0 = Release|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Release|x86.ActiveCfg = Release|Any CPU
{5FDA646C-30DA-4F13-8399-A3C533D2D16E}.Release|x86.Build.0 = Release|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Debug|Any CPU.Build.0 = Debug|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Debug|x86.ActiveCfg = Debug|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Debug|x86.Build.0 = Debug|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Release|Any CPU.ActiveCfg = Release|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Release|Any CPU.Build.0 = Release|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Release|x86.ActiveCfg = Release|Any CPU
{026230E1-F388-425A-98CB-6E17C174FE62}.Release|x86.Build.0 = Release|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Debug|x86.ActiveCfg = Debug|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Debug|x86.Build.0 = Debug|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Release|Any CPU.Build.0 = Release|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Release|x86.ActiveCfg = Release|Any CPU
{C601A031-963B-4EA9-82C7-1221B1EE9E51}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1399,6 +1555,15 @@ Global
{F701369D-EDA3-4407-8655-6B81DD6EBCBA} = {C6B17EFD-4F05-4D45-AF3E-C4F3F790B994}
{82E64F30-8D74-4E01-A974-5A78EBAD916C} = {C6B17EFD-4F05-4D45-AF3E-C4F3F790B994}
{05647D1B-87A3-4440-B468-82866B206E49} = {C6B17EFD-4F05-4D45-AF3E-C4F3F790B994}
{202BA107-89D5-4868-AC5A-3527114C0109} = {235DE1F1-E71B-4817-8E27-3B34FF006E4C}
{4B889714-78E1-429F-AB98-53A1381F12A7} = {202BA107-89D5-4868-AC5A-3527114C0109}
{33C7E2A3-B527-4921-800A-B4CA438BAF6E} = {202BA107-89D5-4868-AC5A-3527114C0109}
{ECDB8F7A-2D71-457D-8081-97C43D393FE8} = {202BA107-89D5-4868-AC5A-3527114C0109}
{526E4E1A-9E8E-4233-B851-D6172D013AF6} = {202BA107-89D5-4868-AC5A-3527114C0109}
{79A46154-4754-48B1-849F-374AD729C040} = {202BA107-89D5-4868-AC5A-3527114C0109}
{4164912F-F69E-4AD7-A521-6D58253B5ABC} = {202BA107-89D5-4868-AC5A-3527114C0109}
{026230E1-F388-425A-98CB-6E17C174FE62} = {202BA107-89D5-4868-AC5A-3527114C0109}
{C601A031-963B-4EA9-82C7-1221B1EE9E51} = {202BA107-89D5-4868-AC5A-3527114C0109}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8B7C7E31-2E32-4E0D-9426-BC9AF22E9F4C}
Expand Down
1 change: 1 addition & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ This section lists features in master, available by [AppVeyor](https://ci.appvey
- Provided a short form of the BrighterMessaging constructor, that queries object provided for async versions of interfaces
- Changed IsAsync to RunAsync on a Subscription for clarity
- Supports an async pipeline: callbacks should happen on the same thread as the handler (and the pump), avoiding thread pool threads
- Fixed issue in SQlite with SQL to mark a message as dispatched

## Release 8.1.1399 ##
- Update nuget libs
Expand Down
38 changes: 38 additions & 0 deletions samples/WebAPI_Dapper/GreetingsEntities/Greeting.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;
using System.Runtime.CompilerServices;

namespace GreetingsEntities
{
public class Greeting
{
public long Id { get; set; }
public string Message { get; set; }
//public Person Recipient { get; set; }
public long RecipientId { get; set; }

public Greeting() { /*Required by Dapperextensions*/}

public Greeting(string message)
{
Message = message;
}

public Greeting(string message, Person recipient)
{
Message = message;
RecipientId = recipient.Id;
}

public Greeting(int id, string message, Person recipient)
{
Id = id;
Message = message;
RecipientId = recipient.Id;
}

public string Greet()
{
return $"{Message}!";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

</Project>
27 changes: 27 additions & 0 deletions samples/WebAPI_Dapper/GreetingsEntities/Person.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;

namespace GreetingsEntities
{
public class Person
{
private readonly List<Greeting> _greetings = new List<Greeting>();
public byte[] TimeStamp { get; set; }
public long Id { get; set; }
public string Name { get; set; }
public IEnumerable<Greeting> Greetings => _greetings;

public Person(){ /*Required for DapperExtensions*/}

public Person(string name)
{
Name = name;
}

public Person(int id, string name)
{
Id = id;
Name = name;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.Data;
using DapperExtensions.Mapper;
using GreetingsEntities;

namespace GreetingsPorts.EntityMappers;

public class GreetingsMapper : ClassMapper<Greeting>
{
public GreetingsMapper()
{
TableName = nameof(Greeting);
Map(g=> g.Id).Column("Id").Key(KeyType.Identity);
Map(g => g.Message).Column("Message");
Map(g => g.RecipientId).Column("Recipient_Id").Key(KeyType.ForeignKey);
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using DapperExtensions.Mapper;
using GreetingsEntities;

namespace GreetingsPorts.EntityMappers;

public class PersonMapper : ClassMapper<Person>
{
public PersonMapper()
{
TableName = nameof(Person);
Map(p => p.Id).Column("Id").Key(KeyType.Identity);
Map(p => p.Name).Column("Name");
Map(p => p.TimeStamp).Column("TimeStamp").Ignore();
Map(p => p.Greetings).Ignore();
ReferenceMap(p => p.Greetings).Reference<Greeting>((g, p) => g.RecipientId == p.Id);
}
}
19 changes: 19 additions & 0 deletions samples/WebAPI_Dapper/GreetingsPorts/GreetingsPorts.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\Paramore.Brighter.Dapper\Paramore.Brighter.Dapper.csproj" />
<ProjectReference Include="..\..\..\src\Paramore.Brighter\Paramore.Brighter.csproj" />
<ProjectReference Include="..\GreetingsEntities\GreetingsEntities.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Dapper" Version="2.0.123" />
<PackageReference Include="DapperExtensions" Version="1.7.0" />
<PackageReference Include="Paramore.Darker" Version="2.0.78" />
</ItemGroup>

</Project>
Loading