Skip to content

Commit

Permalink
remove duplicate trim
Browse files Browse the repository at this point in the history
WeihanLi committed Feb 5, 2020
1 parent 61d2be2 commit 990461c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DbTool/DbProvider/SqlServer/SqlServerDbProvider.cs
Original file line number Diff line number Diff line change
@@ -379,7 +379,7 @@ public string GenerateSqlStatement(TableEntity tableEntity, bool generateDescrip
var sbSqlDescText = new StringBuilder();
//create table
sbSqlText.AppendLine($"---------- Create Table 【{tableEntity.TableName}】 Sql -----------");
sbSqlText.Append($"CREATE TABLE [{(string.IsNullOrWhiteSpace(tableEntity.TableSchema) ? "dbo" : tableEntity.TableSchema)}].[{tableEntity.TableName.Trim()}](");
sbSqlText.Append($"CREATE TABLE [{(string.IsNullOrWhiteSpace(tableEntity.TableSchema) ? "dbo" : tableEntity.TableSchema)}].[{tableEntity.TableName}](");
//create description
if (generateDescription && !string.IsNullOrEmpty(tableEntity.TableDescription))
{

0 comments on commit 990461c

Please sign in to comment.