load all .linq under a folder
Since 8.8.1 , below load script is allowed
#load "_Models\*.linq" #load "_Models\Extensions\*.linq" #load "_Models\Extensions\Old\*.linq" #load "_Models\Extensions\New\*.linq" #load "_Models\Extensions\Test\*.linq" #load "_Models\Services\*.linq" #load "_Models\DataAccess\*.linq" #load "_Models\DataObject\*.linq" #load "_Models\Business\*.linq"
Is it possible to use one line to load all .linq (recursive with sub folder) under a folder like below or someth else?
#load "_Models\*\*.linq"
Comments
Neither
_Models\Extensions\*\*.linq
nor_Models\Extensions\**\*.linq
are supported as of8.8.3
How about
#load "_models\*.linq /s"
It's good and with common sense.
Is this already implement in 8.3.3?
Doesn't work for me,
8.8.3
.Why
/s
?Sorry - that option did not make 8.8.3. It should now be working in 8.8.4.
I test in 8.8.5 and success.

But can you add a argumet to let user deside
#load "_models\*.linq /s"
but exclude self,Because if current .linq is under load all target folder like below, it will accour already define error.
I'll put this into the next build. It will be automatic - you won't need an extra switch for it.
That woud be perfect.

Maybe you can add a function to setting add default #load while open new queries by the way.
I often need to add same 8 lines #load script while open new queries in my use case.
Just like Namespace Imports
Set as default for new queries
function below,8.8.6 is now released.
You can add a bunch of #load directives easily by creating a snippet. Right-click the editor and choose "Create code snippet". Include your desired #load directives and save it to a snippet with a name such as "load.snippet". Then you just have to type
load
followed by the tab key to insert it.Also, pressing Shift+Ctrl+N creates a new query with the same properties as the current query. This includes the #load directives.
Test 8.8.6 Success, thank you.