Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Mike
    @mbarmettler
    @StefanOssendorf
    i had troubles as well with downloading a file after uploading it in a different language.
    maybe this helps as well: https://stackoverflow.com/questions/30704078/how-to-download-a-file-through-ajax-request-in-asp-net-mvc-4
    borisgappov
    @borisgappov
    Hello everyone!
    Please advise the architecture of WebApi application with the latest innovations.
    Maybe EF + unit of work pattern, controller -> manager -> repository, xUnit, Serilog or..., a reliable migration mechanism for Oracle - Liquibase? or...
    asynchronous execution - async / await.
    Requirements: authentication - AD, DB - Oracle
    If there are code examples it would be ideal
    TeBeCo
    @tebeco
    EF is already a Unit of Work + Repository pattern
    you don’t really need to add a layer doing “unit of work” or “repository” on top of EF
    xunit and serilog seems unrelated to an architectural question
    you’ll need to have UT and also log
    as for the async/await i don’t understand
    your doing a webapi it’s full of IO so you’ll have async/await
    db is also gonna be on your network and thus I/O bound somewhere
    borisgappov
    @borisgappov
    thank you for response, but..
    please look
    when the layers are separated then it is more easier to cover them by tests because actually tests for repository, business logic and controllers are different
    borisgappov
    @borisgappov
    if all the levels in the application are mixed - everything is in the controller, sometimes it is simply impossible to make quality tests
    and about the unit of work sounds unlikely, is it already implemented?
    Here is an simple example
    borisgappov
    @borisgappov
    but I am not satisfied with this solution and I need something newer and for the .net framework 4.8, not core
    TeBeCo
    @tebeco
    my previous a answer still stands for efcore ;) regardless of finding docs that adds up even more
    borisgappov
    @borisgappov
    ok, do you have code example?
    TeBeCo
    @tebeco
    also that’s mvc4
    borisgappov
    @borisgappov
    any WebApi or MVC application
    TeBeCo
    @tebeco
    and i see 2013 on that page
    so that’s ef5 not efcore5
    almost the same
    TeBeCo
    @tebeco
    too much thing to explain
    just don’t if you don’t need that
    most people doing that just don’t know they mostly often never need that
    borisgappov
    @borisgappov
    it is actually more reliable
    TeBeCo
    @tebeco
    and that often bad hype “because i saw something about ddd”
    most of the question we see on the C# discord about that is because dev don’t know they don’t need to do it
    and are stuck with that idea of “i need to do pattern” in mind
    yes … but if it’s already done … you don’t need anymore yourself
    you’ll find VERY SPECIFIC docs on efcore docs for custom unit of work and repository pattern
    that’s only relatable for certain type of application of DDD in application
    also the repo you linked seems to do horizontal architecture
    because i see folder named “controller” or “business”
    meaning y#that you’re gonna spread acros many places the same thing is code
    (feature/module)
    Hugh Gleaves
    @Korporal
    Im seeing a bug in some area of ASP.NET Core
    if a key is not found here, we get a result StringValue.Empty
    TeBeCo
    @tebeco
    Hugh Gleaves
    @Korporal
    That's what the docs say, but I get InvalidOperationException "Incorrect Content-Type"
    TeBeCo
    @tebeco
    This message was deleted
    Hugh Gleaves
    @Korporal
    So this code causes an exception: var x = a.Request.Form["LOGON_USER"];
    but should not, it should just return a StringValue
    Hugh Gleaves
    @Korporal
    i submitted a bug