我可以使用 SQL DB 项目扩展在 Azure 数据工作室中成功构建我的数据库项目。(不是使用SSDT,而是类似于: https: //www.sqlshack.com/two-ways-to-build-sql-database-projects-in-azure-data-studio/ 当我右键单击数据库项目时并选择“从数据库更新项目”,它列出了在线 Azure SQL DB 和本地数据库项目之间的增量。
现在的问题是,当我单击“生成脚本”或“应用”时,我收到错误。
Generate script: Performing script generation is not possible for this comparison result.
Performing script generation is not possible for this comparison result.
Apply schema compare changes: Object reference not set to an instance of an object.
Object reference not set to an instance of an object.
Run Code Online (Sandbox Code Playgroud)
我已经重新安装了 Azure Data Studio,但没有成功。有什么提示我可以做些什么来解决这个问题吗?
我正在动态生成某种类型的 .net 对象,如下所示$MyType=([System.Type]::GetType("System.String")
这对于标准 .net 对象来说效果很好。
我现在创建了一个像这样的自定义类
class InstanceName
{
[String] hidden $Val
InstanceName([String]$CVal)
{
$this.Val=$CVal
}
}
Run Code Online (Sandbox Code Playgroud)
在这里,此方法不起作用,因为 powershell 无法找到类型。
$MyType=([System.Type]::GetType("InstanceName")
知道如何获取自定义 PS 类的 System.Type 吗?
谢谢!