Open NameOfTheDragon opened 7 years ago
Hey, sorry it's taken me so long to respond; this must be a record for me!
I suspect that this issue is due to those properties not existing on the base class, which is the only type the ObjectTableDataLoader<>
actually knows about. I'm wondering if this can be solved at the same time as #12, as that will eventually result in the ObjectTableDataLoader<>
knowing more about the actual table metadata too.
In the short term, if you created an object that matched the database table itself and added that instead then you could probably work around this issue for now.
Hi. I'm having a problem with a table that uses Table Per Hierarchy to store a number of alternative items. Using TPH, the hierarchy pretty much MUST contain nullable fields as that is a prerequisite for TPH. However, my entities are not initializing correctly and all of the nullable fields are always initialized to null.
I have created a small reproduction of this problem (abstracted from an MVC web application) which you can find at: https://bitbucket.org/tigra-astronomy/effort.extra.ef6.tableperhierarchynullableint
When this code is run, it produces the following output:
Notice that the fields
ObservingSessionId
andLabel
are both null when read back from the database, but they both have values when creating the data loader.