How to enumerate from a custom data feed #11368
Replies: 4 comments 11 replies
-
You can import the spreadsheet as is in the Orchard Core database. Let's say, SpreadSheetTable. Then in the SQL Query module you can create a SQL Query that will return the data you require to use. Moreover, you can use the Schema on the SQL Query to create a GraphQL endpoint to that custom table. Of course, this is the simplest way to do it. Though, if you want to create a ContentItem you will need to create a recipe.json file out of your SpreadSheet data. You start by creating a Content Type that will have the same column dbtypes than your spreadsheet and then you create 1 content item from the admin UI. You use the |
Beta Was this translation helpful? Give feedback.
-
https://martendb.io/introduction.html To be honest. I'm watching this video https://sec.ch9.ms/ch9/2d29/a281311a-76bb-4573-a2a0-2dd7affc2d29/S315dotNETconf_high.mp4 about Marten and it is really similar to YesSQL. In fact, they are using the same tech for database persistence which is Dapper. The only difference is that they are using JSON functions in PostgreSQL to fetch the data whereas YesSQL doesn't. Though YesSQL has a lot of the same things that Marten has. I have noticed that in that video he says that they didn't implement a solution with SQL Server because of the lack of these same JSON path functions but Things that I noted that YessSQL doesn't have : Compiled Queries (faster than LINQ queries) @sebastienros I think Marten works a lot like YesSQL. The Patching API (json functions) is something I already talked about before. Maybe it would be worth starting to consider having it with Dialects for every DB Providers that allows it. Actually I think that Marten decided to support only PostgreSQL because it was easier to only support the JSON functions from that DbProvider only whereas YesSQL tries to support every DBProviders. |
Beta Was this translation helpful? Give feedback.
-
I am turning a couple of choices over in my mind how to approach this. Is it worth the trouble transforming our enumerated domain model, whatever its source, to Content Items (ostensibly, presumably, ...), or do we simply present it as a custom Content Part, with its view doing the enumeration. And as for its Edit Views, ..., well we have the same block considering that as for my initial report. So we really do need to find what the heck is going on with the out of the box custom part, edit views, etc. Maybe it is a typo, I don't know. Also, not sure we want liquid in the near/medium/long range. Probably we just need/want the Razor, for a host of reasons, but that is neither here nor there |
Beta Was this translation helpful? Give feedback.
-
@Skrypt I am wondering, possibly something along these lines for the Part |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say we have a spreadsheet asset, or database, or perhaps even an external, potentially dynamic API, that delivers record oriented data i.e.
IEnumerable<TSource>
for integration within the CMS framework. How might we enumerate these, doing an appropriate ETL, perhaps, from the source data set to the OrchardCore/CMS framework? Ostensibly, I am assuming this would land as at least aContentItem
, or derivation thereof? And however that got organized, as a bag, list, etc, as appropriate. Assuming that would require a custom module, for starters, which knowledge of that data source. However, I am not familiar with the OrchardCore CMS vis-a-visContentItem
hierarchy, or how to customize them, around such an objective.Beta Was this translation helpful? Give feedback.
All reactions