A Guide to Entity Framework with Hot Chocolate 13

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มี.ค. 2023
  • Hi everyone,
    In this episode, I will look at how we can use EF Core with Hot Chocolate 13.
    Please, if you like our project, give us a star on GitHub:
    github.com/ChilliCream/hotcho...
    Workshops:
    chillicream.com/services/trai...
    Hot Chocolate GraphQL .NET server version used in this video: www.nuget.org/packages/HotCho...
    Social Media:
    Follow me on GitHub: bit.ly/michaelGitHub
    Follow me on Twitter: bit.ly/michaelTwitter
    Connect on LinkedIn: bit.ly/michaelLinkedIn
    Web:
    chillicream.com
    #dotnet #graphql #hotchocolate #efcore #entityframework #entityframeworkcore
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 22

  • @mubashir3
    @mubashir3 ปีที่แล้ว +17

    Looking forward to the next video that covers paging, filtering and sorting with this new method.

  • @alexeykazakevich338
    @alexeykazakevich338 ปีที่แล้ว +4

    3:50 When using .AddType(), then throw error - 'Query': static class type cannot be used as type arguments

  • @rpreviato
    @rpreviato 11 หลายเดือนก่อน +2

    Why when I use AddType(); I get the following error?
    "The call is ambiguous between the following methods or properties: 'SchemaRequestExecutorBuilderExtensions.AddTypes(IRequestExecutorBuilder, params Type[])' and 'SchemaRequestExecutorBuilderExtensions.AddTypes(IRequestExecutorBuilder, params INamedType[])'"

  • @razvangoia800
    @razvangoia800 11 หลายเดือนก่อน

    How would this work if the query type is in a different project in the solution, having a hard getting the AddTypes to detect the query

  • @douglaswoods3869
    @douglaswoods3869 ปีที่แล้ว

    Where can I find the code for this example? Looks really good, but having the sample code would make life much easier for the humble user of hot chocolate

  • @vector_____
    @vector_____ 6 หลายเดือนก่อน +1

    Just followed this guide but I am still getting the following error: "A second operation was started on this context instance before a previous operation completed."
    Did something change?

  • @dandoescode
    @dandoescode ปีที่แล้ว

    Why does the AssetRepository need to be registered twice? Is there any way that can be made more succinct?
    Look forward to seeing the follow-up video. 🙂

    • @ChilliCream
      @ChilliCream  ปีที่แล้ว +2

      No,
      You register it ones with the DI. But if you want to use it without attribute then you need to register it as well-known services with the GraphQL configuration as well.
      Hot Chocolate resolves services through the IServiceProvider interface we have no way of inspecting what services are available through that interface. Nor can we see how they can be used.
      Either use the service attribute, register it with the GraphQL configuration or write a parameter expression builder that can identify your services.

  • @gowthambalakrishnan7779
    @gowthambalakrishnan7779 ปีที่แล้ว

    Great video! I noticed that the slack channel link the website is broken. Is the channel still active? if it is , any idea how I can get access to it?