Skip to content

Commit 563f695

Browse files
committed
- 修正 单词命名错误 Coment -> Comment;#958
1 parent df85054 commit 563f695

File tree

20 files changed

+219
-241
lines changed

20 files changed

+219
-241
lines changed

Extensions/FreeSql.Generator/RazorContentManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public partial class @gen.GetCsName(gen.FullTableName) {
6363
6464
@foreach (var col in gen.columns) {
6565
66-
if (string.IsNullOrEmpty(col.Coment) == false) {
66+
if (string.IsNullOrEmpty(col.Comment) == false) {
6767
@:/// <summary>
68-
@:/// @col.Coment.Replace(""\r\n"", ""\n"").Replace(""\n"", ""\r\n /// "")
68+
@:/// @col.Comment.Replace(""\r\n"", ""\n"").Replace(""\n"", ""\r\n /// "")
6969
@:/// </summary>
7070
}
7171
@:@(""[JsonProperty"" + GetAttributeString(gen.GetColumnAttribute(col, true)) + ""]"")
@@ -154,9 +154,9 @@ public partial class @gen.GetCsName(gen.FullTableName) {
154154
var findfks = fks.Where(fkaa => fkaa.Columns.Where(fkaac1 => fkaac1.Name == col.Name).Any());
155155
var csname = gen.GetCsName(col.Name);
156156
157-
if (string.IsNullOrEmpty(col.Coment) == false) {
157+
if (string.IsNullOrEmpty(col.Comment) == false) {
158158
@:/// <summary>
159-
@:/// @col.Coment.Replace(""\r\n"", ""\n"").Replace(""\n"", ""\r\n /// "")
159+
@:/// @col.Comment.Replace(""\r\n"", ""\n"").Replace(""\n"", ""\r\n /// "")
160160
@:/// </summary>
161161
}
162162
@:@(""[JsonProperty"" + GetAttributeString(gen.GetColumnAttribute(col, true)) + ""]"")

FreeSql.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
101101
README.zh-CN.md = README.zh-CN.md
102102
EndProjectSection
103103
EndProject
104-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FreeSql.Provider.ClickHouse", "Providers\FreeSql.Provider.ClickHouse\FreeSql.Provider.ClickHouse.csproj", "{86C56235-5D37-4422-807B-B31681C7D01C}"
104+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeSql.Provider.ClickHouse", "Providers\FreeSql.Provider.ClickHouse\FreeSql.Provider.ClickHouse.csproj", "{86C56235-5D37-4422-807B-B31681C7D01C}"
105105
EndProject
106106
Global
107107
GlobalSection(SolutionConfigurationPlatforms) = preSolution

FreeSql/DatabaseModel/DBColumnInfo.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,18 @@ public class DbColumnInfo
4545
/// </summary>
4646
public bool IsNullable { get; set; }
4747
/// <summary>
48+
/// 备注,早期编码时少按了一个字母,请使用 Comment
49+
/// </summary>
50+
[Obsolete("早期编码时少按了一个字母,请使用 Comment")]
51+
public string Coment
52+
{
53+
get => Comment;
54+
set => Comment = value;
55+
}
56+
/// <summary>
4857
/// 备注
4958
/// </summary>
50-
public string Coment { get; set; }
59+
public string Comment { get; set; }
5160
/// <summary>
5261
/// 数据库默认值
5362
/// </summary>

FreeSql/FreeSql.xml

Lines changed: 188 additions & 219 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Providers/FreeSql.Provider.ClickHouse/ClickHouseDbFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ from information_schema.columns a
299299
DbTypeText = type,
300300
DbTypeTextFull = sqlType,
301301
Table = loc2[table_id],
302-
Coment = comment,
302+
Comment = comment,
303303
DefaultValue = defaultValue,
304304
Position = ++position
305305
});

Providers/FreeSql.Provider.Dameng/DamengDbFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ from all_tab_cols a
406406
DbTypeText = type,
407407
DbTypeTextFull = sqlType,
408408
Table = loc2[table_id],
409-
Coment = comment,
409+
Comment = comment,
410410
DefaultValue = defaultValue,
411411
Position = ++position
412412
});

Providers/FreeSql.Provider.Firebird/FirebirdDbFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ from rdb$relation_fields a
267267
DbTypeText = type,
268268
DbTypeTextFull = sqlType,
269269
Table = loc2[table_id],
270-
Coment = comment,
270+
Comment = comment,
271271
DefaultValue = defaultValue,
272272
Position = ++position
273273
});

Providers/FreeSql.Provider.KingbaseES/KingbaseESDbFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ from sys_class c
306306
DbTypeText = type,
307307
DbTypeTextFull = sqlType,
308308
Table = loc2[object_id],
309-
Coment = comment,
309+
Comment = comment,
310310
DefaultValue = defaultValue,
311311
Position = ++position
312312
});

Providers/FreeSql.Provider.MySql/MySqlDbFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ from information_schema.columns a
314314
DbTypeText = type,
315315
DbTypeTextFull = sqlType,
316316
Table = loc2[table_id],
317-
Coment = comment,
317+
Comment = comment,
318318
DefaultValue = defaultValue,
319319
Position = ++position
320320
});

Providers/FreeSql.Provider.Odbc/Dameng/OdbcDamengDbFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ from all_tab_cols a
406406
DbTypeText = type,
407407
DbTypeTextFull = sqlType,
408408
Table = loc2[table_id],
409-
Coment = comment,
409+
Comment = comment,
410410
DefaultValue = defaultValue,
411411
Position = ++position
412412
});

0 commit comments

Comments
 (0)