gpt4 book ai didi

linqpad - 是否可以在 LinqPad 中引用 .linq 文件

转载 作者:行者123 更新时间:2023-12-03 16:45:22 26 4
gpt4 key购买 nike

是否可以在 LinqPad 中 MyExtensions 旁边的另一个查询文件中调用/引用函数?

最佳答案

您可以从另一个调用一个脚本:

Another way to combine scripts is to dynamically execute one script from another. The Util.Run method does exactly that, and is useful in both interactive and command-line scenarios:

string htmlResult = Util.Run ("test.linq", QueryResultFormat.Html).AsString();

Note: If you feed Util.Run a relative path, it will resolve it relative to the 'My Queries' directory rather than the current directory. You can switch its behavior by specifying .\test.linq instead of test.linq in this example.



从:
  • LINQPad Command-Line and Scripting
  • 关于linqpad - 是否可以在 LinqPad 中引用 .linq 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13694221/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com