.NET Data Community Standup - Complex types as value objects in EF8

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 7

  • @modernkennnern
    @modernkennnern 11 місяців тому +3

    This is - in my opinion - the most important feature EF has added in years (even more so than `ExecuteUpdateAsync`). Really excited to simplify and more strongly model my entities! :)

  • @JulieLerman
    @JulieLerman 10 місяців тому +1

    whirlwind! THANK YOU for finally getting to this I know it's been in your sights for quite some time! Yeah ...not supporting null complex type properties is ...uggh. But I appreciate the problem of implementing it.

  • @rapzid3536
    @rapzid3536 11 місяців тому +3

    Mind blown at 56:45

  • @alexisfibonacci
    @alexisfibonacci 11 місяців тому

    @Shay you said this:
    Note that even with non-owned entities, you can omit having a DbSet of a dependent, making it only reachable via its principal. That should get you to a similar place.
    Someone can still do dbContext.Set(). For instance, I don't define DbSet properties on very large Domain Models, discovery instead happens through classes that implement IEntityTypeConfiguration. So whichever way, once something is an Entity, it is reachable even if it doesn't have a property of its own on the DbContext.

  • @amirhosseinahmadi3706
    @amirhosseinahmadi3706 11 місяців тому

    Great feature! Owned types were always awkward to work with, complex types precisely meet one's expectations as to how these kinds of objects are supposed to behave. So, well done!
    Such a bummer that nested record types with the primary constructor syntax aren't supported though.

  • @rapzid3536
    @rapzid3536 11 місяців тому +1

    It would be really cool to use complex types as strongly typed composite keys.

  • @user-AndytheHandy
    @user-AndytheHandy 11 місяців тому

    you know what your talking about !