ABP常见问题

System.Data.SqlClient.SqlException (0x80131904): 'OFFSET' 附近有语法错误

解决方案:最新的ABP默认支持的是sql2012以上的版本,对于之前的版本,需要修改EntityFrameworkCore下的DbContextConfigurer.cs文件,修改如下:

 Conflicting schemaIds: Identical schemaIds detected for types A and B. See config settings - "CustomSchemaIds" for a workaround

原因分析:swagger生成API时,如果类名相同(即使在不同的命名空间)就会报错(CustomSchemaIds冲突)

解决方法:在Starup的ConfigureServices中加入如下配置

 

posted @ 2018-06-17 08:57  SuperShen  阅读(1334)  评论(0编辑  收藏  举报