Jump to content
  • 0

EFCore loading object under objects


AlysiumX

Question

So I have a class that is defined like this.

 

PrimaryClass

  DetailsClass

 

Now I am saving the primary object using PacketSender.SendSaveObject(PrimaryClassInstance); and it is writing the tables as expected one table for the primary class and one table for the detail class with a foreign key, however when I call PrimaryClass.Get(id) it pulls the PrimaryClass details from the table but not the DetailsClass details from the sub table.

 

I tried to add a specific foreign key from to the primary class and do a lookup on it but that will not return the recently save data unless I close the editor and reload (Not sure if this is just a cache I need to bust or something like that)

 

Has anyone else had this issue?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

×
×
  • Create New...