Connect Your .NET MAUI Application to a Database

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

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

  • @Jeremygrmn
    @Jeremygrmn 3 หลายเดือนก่อน

    Sqlite as a file format has always been an interesting idea for me

  • @herczegzoltan92
    @herczegzoltan92 15 วันที่ผ่านมา +1

    Is it really necessary to have Dto and Model when they are exactly the same?

    • @SingletonSean
      @SingletonSean  14 วันที่ผ่านมา

      For a simple domain, it's probably fine to use the same object!

  • @billymartin6497
    @billymartin6497 20 วันที่ผ่านมา

    You always have such great content. Was surprised that you didn't use a repository. Are you getting away from that?

    • @SingletonSean
      @SingletonSean  20 วันที่ผ่านมา

      Good point! I have been getting away from creating repositories. It's one less layer I need - although as I think about it, there probably are benefits to keeping all the low level database interactions in one cohesive unit.
      I kind of went through a phase of excessive decoupling long ago. Guess I never re-evaluated my opinions on repositories. I think either approach is fine in the end.

    • @billymartin6497
      @billymartin6497 19 วันที่ผ่านมา

      @SingletonSean I'm really getting into vertical slices. Features folders with a shared folder. Seems to work really well.

  • @ShahidKhan-vs8bb
    @ShahidKhan-vs8bb 20 วันที่ผ่านมา +1

    Why don't you just use Efcore?

    • @SingletonSean
      @SingletonSean  20 วันที่ผ่านมา +2

      I find it a little overkill for a .NET MAUI app. In most cases, your app will connect to a SQLite DB, so no need to abstract up to EF. I feel like this SQLite package has everything I need in terms of an ORM, and it is much simpler than EF. I'm sure EF could work as well though.

  • @pomodorobreaklessons
    @pomodorobreaklessons 3 หลายเดือนก่อน

    Nice video. Wouldn't it be better to move the crud methods to a helper or service class?

    • @SingletonSean
      @SingletonSean  3 หลายเดือนก่อน

      Definitely! A service class that returns the Ticket domain object would be ideal

  • @Shubvideoschema
    @Shubvideoschema 13 วันที่ผ่านมา

    Database integration