Skip to content

Commit 8baa4b9

Browse files
committed
test
1 parent cb38205 commit 8baa4b9

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

DAL.cst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace <%= DALNamespace %>
2323
public partial class <%= GetDALClassName() %>
2424
{
2525

26-
#region 增加
26+
#region Insert
2727
/// <summary>
2828
/// 插入数据
2929
/// </summary>
@@ -84,9 +84,9 @@ namespace <%= DALNamespace %>
8484
#endregion
8585

8686

87-
#region 根据Id删除数据记录
87+
#region Delete
8888
/// <summary>
89-
/// 根据Id删除数据记录
89+
/// 根据主键删除数据
9090
/// </summary>
9191
public int DeleteBy<%= GetPKPropertyName() %>(<%= GetPKPropertyType() %> <%= GetCamelPKName() %>)
9292
{
@@ -104,7 +104,7 @@ namespace <%= DALNamespace %>
104104

105105
#region Update
106106
/// <summary>
107-
/// 根据传入Model的对应数据库主键更新数据并返回受影响的行数
107+
/// 根据主键更新数据
108108
/// </summary>
109109
public int Update(<%= GetModelClassName() %> <%= GetModelParamName() %>)
110110
{
@@ -140,9 +140,10 @@ namespace <%= DALNamespace %>
140140
return MySqlDBHelper.ExecuteNonQuery(sql, para);
141141
}
142142
#endregion
143+
143144
#region select
144145
/// <summary>
145-
/// 传入主键,获得Model实体
146+
/// 根据主键查询数据
146147
/// </summary>
147148
public <%= GetModelClassName() %> GetBy<%= GetPKPropertyName() %>(<%= GetPKPropertyType() %> <%= GetCamelPKName() %>)
148149
{

MySqlDBHelper.cst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ namespace <%=Namespace%>
178178

179179
}
180180
#endregion
181+
181182
#region 执行ExecuteReader,返回MySqlDataReader
182183
/// <summary>
183184
/// 执行ExecuteReader,返回MySqlDataReader

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@
55
修改整理全部代码,可以跑通.
66

77
2019-5-8 星期三
8-
修复bug.
9-
10-
2019-6-26 星期三
11-
优化注释,修复bug.
8+
修复bug.

0 commit comments

Comments
 (0)