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 c53c405 commit bc296a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<PublishSingleFile>True</PublishSingleFile>
<ProjectGuid>d4e4101e-81b5-40f8-903d-d6e069250841</ProjectGuid>
<SelfContained>false</SelfContained>
<SelfContained>true</SelfContained>
<PublishReadyToRun>False</PublishReadyToRun>
</PropertyGroup>
</Project>

0 comments on commit bc296a5

Please sign in to comment.