Giter Site home page Giter Site logo

Entity Framework Problem about cqrslite HOT 6 CLOSED

alansbraga avatar alansbraga commented on June 10, 2024
Entity Framework Problem

from cqrslite.

Comments (6)

gautema avatar gautema commented on June 10, 2024

Hi.

I haven't seen this one myself, but I don't use entity framework at the moment. I guess this is something I should fix, since supporting EF is something I want to do. I'll get started on a fix right away.

Thanks for the bug report.

from cqrslite.

gautema avatar gautema commented on June 10, 2024

Hi. Have uploaded a patch to nuget. Do you have the possibility to check if it works for you now?

from cqrslite.

gautema avatar gautema commented on June 10, 2024

Any specific reason for using MediatR and not the Router in CQRSlite by the way?

from cqrslite.

alansbraga avatar alansbraga commented on June 10, 2024

Thank you for the quick answer!
I've made the same changes you did, so it'll probably work.
I can test it only on monday.

About MediatR: I'm using its IPipelineBehavior to validate the commands before they get to the Command Handler and send the error back to the API as ModelState errors.

I'll probably use it to verify if the user "can" or "can not" do the Command based on its permissions, but I didn't get there yet.

I'm new to Event Sourcing but this two ideas seems good to me to avoid programmers to forget or to code the same thing every time.

from cqrslite.

alansbraga avatar alansbraga commented on June 10, 2024

I've tested now and It worked.
Thank you very much.

If you have any suggestions/questions about the use of MediatR, please, let me know.

from cqrslite.

gautema avatar gautema commented on June 10, 2024

from cqrslite.

Related Issues (20)

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.