Coder Social home page Coder Social logo

financeobserver's People

Contributors

dependabot[bot] avatar florianalbert avatar

Stargazers

 avatar

Watchers

 avatar

financeobserver's Issues

Enable DbAccess Inclusions to include navigation properties with different Key type than parent

Is your feature request related to a problem? Please describe.
Right now, when including a navigation property in the repository, the type of the navigation property has to have the same type as a key as the parent entity does. For example, it is not possible to have the user entity type have a key of type System.Guid and the RegistrationConfirmation have a key of type System.Int32 and include the RegistrationConfirmation in the Query of a user.

Describe the solution you'd like
The key type of the included navigation property should get passed to the Inclusion object by a separate generic type argument.

Describe alternatives you've considered
You could also restrict all types inheriting from BaseEntity to have key type of System.Guid or another fix type. But this would limit the possibilities for the future to add entity types with key types that are more convenientfor their use case than the already fixed key type.

Additional context

Add CI

Is your feature request related to a problem? Please describe.
When changing the code base in feature branch, it is possible to change or even break the existing behaviour, to add new unintended behaviour or even to introduce changes that make it impossible to compile the code base. This should get prevented, so that on the main branch is always a functioning version of the software.

Describe the solution you'd like
Add a GitHub Action that runs on a new PR to main, that tries to build the code base and run all tests. This should succeed as a required status check.

Describe alternatives you've considered
Since this is a well-known best practice, there are no real alternatives that are worth to consider.

Additional context
GitHub Actions Docs
Guide for .NET CI pipeline
Codecov to visualize code coverage of tests

EF Core ExecuteUpdate and ExecuteDelete methods not supported with in-memory database

Describe the bug
Since there is no support for the ExecuteUpdate and ExecuteDelete methods of EF Core with the in-memory provider, we should consider to remove the option of an in-memory database.

To Reproduce
Steps to reproduce the behavior:

  1. Set environment variable FINANCE_OBSERVER_DB_PROVIDER to "InMemory"
  2. Any bulk deletion or update functionalities should fail.

Expected behavior
All supported providers should support this feature.

Additional context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.