diff --git a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs index 5f35bcdc..23b57090 100644 --- a/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs +++ b/SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs @@ -40,7 +40,7 @@ public static void CreateProject(Project project,int dbid=0) if (dbid > 0&&fileInfo.Content.Contains("[请设置ConStr]")) { var db = DbScoped.Sugar.Queryable().InSingle(dbid); - fileInfo.Content = fileInfo.Content.Replace("[请设置DbType]","SqlSugar.DbType."+db.DbType+"").Replace("[请设置ConStr]", "@\""+db.Connection+"\""); + fileInfo.Content = fileInfo.Content.Replace("[请设置DbType]","SqlSugar.DbType."+db.DbType+"").Replace("[请设置ConStr]", "@@\""+db.Connection+"\""); } var context = fileInfo.Content; if (!string.IsNullOrEmpty(project.Reference))