This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have an IMyVeryOwnUnitOfWork : Mindscape.LightSpeed.IUnitOfWork which I keep in sync with the model. And I noticed that JB has the same in his LS4 sample code. What do you reckon - would be easy for you to add that to the model gen, yes? :)
and while we're here, how about adding IQueryable<TBaseEntity> (to the model UnitOfWork that you already generate) for each STI base class...? I still have to maintain these in a partial UnitOfWork - should be easy to gen those as well, you reckon...?
thanks :D |
|
|
Thanks for the suggestion -- that shouldn't be hard to do, though I can't make any promises for the LS4 time frame. I think your problem with IQueryable<TBase> is not to do with it being a base class, but to do with it being an abstract class. We currently generate query properties only for concrete classes. You're right, we should amend that to include abstract base classes (for discriminated hierarchies, that is: concrete table inheritance isn't polymorphic). I'll see what we can do -- thanks for catching this! |
|