Search code examples
c#dotnetnuke2sxc

Creating reusable 2sxc Dynamic Data Sources


I'm building a data source for internal use at our organization, and would like to use it across multiple apps.

For other parts of our apps (razor templates, JS code, etc) we are using Git submodules to keep the code centralized. A requirement of git submodules is that the repository is copied to it's own directory. However, according to the 2sxc docs, data sources must be located directly within the DataSources directory, Ex: DataSources/MyDs.cs

Is there any way (either a C# feature, or 2sxc feature, or otherwise) that would allow us to use data sources from these sub-folders? Ex: DataSources/MyDs/MyDs.cs, DataSources/TheirDs/TheirDs.cs?

An option we've considered is using a build tool to copy them to the expected directory, but ideally we would like to use something built-in if possible.


Solution

  • As of now subfolders are not supported.

    The feature is still fairly new, so we plan to keep it simple till we see more real life use cases. So I believe for now you'll need to improvise.