引用标识符错误Codefluent

Quoted identifier error Codefluent

我们有一个与 Azure 生产者有关的 QUOTEDIDENTIFIER 问题。我们有一个实体,我们在其中定义了地理 属性。我们在 table 上创建了一个地理空间索引。但是,如果我们对该 table 执行插入或更新,我们会收到以下错误:

INSERT failed because the following SET options have incorrect settings: ‘QUOTED_IDENTIFIER’. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.

我们通过删除和恢复此 table 的所有存储过程解决了错误,但现在将 QUOTED IDENTIFIER 设置为 ON。

问题是,每次我们 运行 生产者删除并创建 QUOTED IDENTIFIER OFF 存储过程。我们如何解决这种情况?

您可以将 SQL 服务器生产者配置为在文件顶部生成 set quoted_identifier ON

<cf:producer name="SQL Server" typeName="CodeFluent.Producers.SqlServer.SqlServerProducer, CodeFluent.Producers.SqlServer">
  <cf:configuration quotedIdentifier="ON" ... />
</cf:producer>