Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
DotNetNext committed Sep 21, 2021
1 parent bc296a5 commit 33c8f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoEasyPlatform/Apis/ProjectApp/ProjectController_Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Database>().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))
Expand Down

0 comments on commit 33c8f90

Please sign in to comment.