Make association properties can be subclass of types implemented IEnumberable<T> #4351
Replies: 3 comments 3 replies
-
Problem also is how to tell |
Beta Was this translation helpful? Give feedback.
-
Anyway, Pull request with tests are welcome, we will correct if something can be improved. |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for replying. And can I have one more question? In our code we have a calculate field as the foreign key. How can we tell linq2db to take this field into consideration in queries? From my researching ExpressionMethodAttribute might be the answer but not sure how to make it work. Can you give us any suggestions or examples to handle this scenario?
|
Beta Was this translation helpful? Give feedback.
-
We are planning to use linq2db as the ORM framework to replace the current one which developed by ourselves. In the current code all the association properties are inherit from a super class which implements IEnumberable. This is an example of our code and all the attributes are defined by ourselves.
we are trying to use Fluent Mapping to build schema maps. All the things work fine except the "BillingSettingsList" property. linq2db just cannot find the element type for this property. I checked in the source code and seems this can be easily fixed by updating GetEnumerableElementType method in EagerLoading.cs to be like following.
Can it be included in future release or any other solutions for this problem?
Beta Was this translation helpful? Give feedback.
All reactions