我有长期的 SSIS 背景,我们希望使用 Azure 数据工厂 v2,但我正在努力寻找任何(明确的)处理多个环境的方法。在SSIS中,我们将项目参数绑定到Visual Studio项目配置(例如开发/测试/生产等...),并说SourceServerName和DestinationServerName有2个参数,如果我们处于开发或测试阶段,这些参数将指向不同的服务器。
从我最初的尝试来看,我看不到任何方法可以在数据工厂中做到这一点。当然,我已经搜索过 google,但是我发现的任何信息似乎都围绕 CI/CD,然后谈论 Git 的“分支”,并且很难理解。
我基本上正在寻找一个非常简单的解释和示例,说明如何在 Azure 数据工厂 v2 中实现这一点(如果可能的话)。
我在使用 Blazor 时遇到了一个奇怪的问题...
我有一个使用拖放功能的应用程序,它使用 .Net Core 3.1 运行良好。然而,无论我做什么,drop 事件现在都不会被解雇,我不知道为什么。因此,我创建了一个新的 Blazor 项目,并将所有内容保留在标准项目模板中,但我已使用以下代码修改了 Index.razor 页面,以查看是否可以找出问题所在:-
@page "/"
<h1>Hello, world!</h1>
Welcome to your new app.
<ul>
<li draggable="true" @ondragstart="OnDragStart" style="background-color:blue;color:white;width:50px;height:50px;">drag me</li>
</ul>
<div dropzone="move" @ondrop="OnDrop" @ondragover:preventDefault style="background-color:green;color:white;width:200px;height:200px;">
and drop me here
</div>
<div>@DragState</div>
@code {
public string DragState = "waiting...";
public void OnDragStart(DragEventArgs dragEventArgs)
{
DragState = "drag started";
}
public void OnDrop(DragEventArgs dragEventArgs)
{
DragState = "item dropped";
}
}
Run Code Online (Sandbox Code Playgroud)
据我所知,这应该有效,拖动开始事件工作正常,但任何浏览器(FireFox、Chrome 等...)我尝试放置事件永远不会被触发。
我猜我一定在某个地方做错了什么,但我看不到,所以我希望其他人可以:-)
请注意,我没有更改默认 Blazor 项目中的任何其他文件或设置,只是对 Index.razor 文件进行了此修改以测试拖放...