Project documents to a flat table for reporting #2117
Replies: 6 comments
-
Can we make Marten so smart that it will create the necessary JS code to transform the fields on the server? |
Beta Was this translation helpful? Give feedback.
-
I don't think you'd need any JS code. It's really not that much different mechanically from the existing duplicated field functionality. |
Beta Was this translation helpful? Give feedback.
-
Is this the functionality you have in your mind? (i have ;) ) Order.CompanyID is foreign key to Company. Mapping is based on propercase "ClassPropertyName"
|
Beta Was this translation helpful? Give feedback.
-
@mdissel No, that's a different thing altogether. This is about projecting documents or event streams to a flat table for reporting purposes. |
Beta Was this translation helpful? Give feedback.
-
Ok, but the CompanyOrderDTO is also a 'flat table'. Is something like i mean planned? the SELECT statement that marten should generate is something like
|
Beta Was this translation helpful? Give feedback.
-
#2114 looks to be a related/same issue. |
Beta Was this translation helpful? Give feedback.
-
We've talked about this since we first started Marten, but never recorded the user story for it. Came up today in a discussion at work.
I think it might be how we pull off "map/reduce" w/ groupings in Marten.
Beta Was this translation helpful? Give feedback.
All reactions