Skip to content

Comments

SmartEnum.EFCore + SmartEnum.EFCore.UnitTests#1

Open
Yaevh wants to merge 99 commits intomjuen:masterfrom
Yaevh:smart-enum-ef-core
Open

SmartEnum.EFCore + SmartEnum.EFCore.UnitTests#1
Yaevh wants to merge 99 commits intomjuen:masterfrom
Yaevh:smart-enum-ef-core

Conversation

@Yaevh
Copy link

@Yaevh Yaevh commented Jun 5, 2021

implementing recommendations from ardalis#53 (comment)

mjuen and others added 30 commits June 22, 2019 18:41
The additional package makes it possible to configure all SmartEnums for Entity Framework Core with one single line of code.
* Added support for switch style methods.

I'm not entirely happy with the pattern matching switch statements available in C#. Therefore I'm proposing a fluent interface solution to the same task using a .When().Then() fluent interface in place of a regular switch/case statement.

* Refactor when/then implementation to reduce heap allocations.

* Temporarily move When and Then structs into Core namespace.

* Fix up paramete name in documentation.

* Added When/Then benchmark method.
Change access level of When/Then constructors.
Change comparison from "==" to ".Equals()" to avoid null check.

* Added notes for the When/Then fluent interface
* current progress

* Move test project to solution and create

Directory.Build.props files to simplify the configuration process

* Set up CI with Azure Pipelines

[skip ci]

* Remove redundant PackageId from

Directory.Build.props

* Fix LangVersion property

* Fix unit test project missing source project

references

* Update test project path

* Update azure-pipelines.yml for Azure Pipelines

* Remove duplicate tasks

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Remove Benchmarks from pack process by ading

<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

* Make protram and main method public to avoid

error CS5001 on azure pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml for Azure Pipelines

* Reorder project structure

-Bring solution to the root path
-Create benchmarks folder and move project
-Move test projects from src/test to test
-Reorder projects inside solutions
-Craete Directory.Build.props for tests projects and propagate code
coverage and commons nuget packages.
-Update azure .ylm pipeline to produce code coverage diagrams and result

* Fix solution items

Co-authored-by: Steve Smith <steve@kentsmiths.com>
Co-authored-by: Daniel Meza <dmeza@speedsol.com>
…ardalis#68)

Bumps [MessagePack](https://github.com/neuecc/MessagePack-CSharp) from 1.7.3.4 to 1.9.11.
- [Release notes](https://github.com/neuecc/MessagePack-CSharp/releases)
- [Commits](MessagePack-CSharp/MessagePack-CSharp@v1.7.3.4...v1.9.11)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dalis#75)

* Update icon to include file and remove iconUrl deprecated element

* Add icon to project files.
Changed project references to package references
ardalis and others added 30 commits December 9, 2020 21:29
…lis#108)

- Whitespace removal
- Non-existant mvc ruleset check
- empty summary tags
- redundant comments with no added value.
- whitespace

Co-authored-by: Steve Smith <steve@kentsmiths.com>
Co-authored-by: Steve Smith <steve@kentsmiths.com>
Bumps [AutoFixture](https://github.com/AutoFixture/AutoFixture) from 4.15.0 to 4.16.0.
- [Release notes](https://github.com/AutoFixture/AutoFixture/releases)
- [Commits](AutoFixture/AutoFixture@v4.15.0...v4.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [System.Text.Json](https://github.com/dotnet/runtime) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](dotnet/runtime@v5.0.1...v5.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps SonarAnalyzer.CSharp from 8.8.0.18411 to 8.20.0.28934.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Steve Smith <steve@kentsmiths.com>
Co-authored-by: Dmitry Bardakov <Dmitry.Bardakov@dataart.com>
Co-authored-by: Steve Smith <steve@kentsmiths.com>
Bumps [coverlet.msbuild](https://github.com/coverlet-coverage/coverlet) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.8.3 to 16.9.4.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](microsoft/vstest@v16.8.3...v16.9.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.9.4 to 16.10.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](microsoft/vstest@v16.9.4...v16.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
)

Bumps SonarAnalyzer.CSharp from 8.20.0.28934 to 8.23.0.32424.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](JamesNK/Newtonsoft.Json@12.0.3...13.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Steve Smith <steve@kentsmiths.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Steve Smith <steve@kentsmiths.com>
Bumps [BenchmarkDotNet](https://github.com/dotnet/BenchmarkDotNet) from 0.12.1 to 0.13.0.
- [Release notes](https://github.com/dotnet/BenchmarkDotNet/releases)
- [Commits](dotnet/BenchmarkDotNet@v0.12.1...v0.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Steve Smith <steve@kentsmiths.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.