File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ namespace <%= DALNamespace %>
23
23
public partial class <%= GetDALClassName() %>
24
24
{
25
25
26
- #region 增加
26
+ #region Insert
27
27
/// <summary>
28
28
/// 插入数据
29
29
/// </summary>
@@ -84,9 +84,9 @@ namespace <%= DALNamespace %>
84
84
#endregion
85
85
86
86
87
- #region 根据Id删除数据记录
87
+ #region Delete
88
88
/// <summary>
89
- /// 根据Id删除数据记录
89
+ /// 根据主键删除数据
90
90
/// </summary>
91
91
public int DeleteBy<%= GetPKPropertyName() %>(<%= GetPKPropertyType() %> <%= GetCamelPKName() %>)
92
92
{
@@ -104,7 +104,7 @@ namespace <%= DALNamespace %>
104
104
105
105
#region Update
106
106
/// <summary>
107
- /// 根据传入Model的对应数据库主键更新数据并返回受影响的行数
107
+ /// 根据主键更新数据
108
108
/// </summary>
109
109
public int Update(<%= GetModelClassName() %> <%= GetModelParamName() %>)
110
110
{
@@ -140,9 +140,10 @@ namespace <%= DALNamespace %>
140
140
return MySqlDBHelper.ExecuteNonQuery(sql, para);
141
141
}
142
142
#endregion
143
+
143
144
#region select
144
145
/// <summary>
145
- /// 传入主键,获得Model实体
146
+ /// 根据主键查询数据
146
147
/// </summary>
147
148
public <%= GetModelClassName() %> GetBy<%= GetPKPropertyName() %>(<%= GetPKPropertyType() %> <%= GetCamelPKName() %>)
148
149
{
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ namespace <%=Namespace%>
178
178
179
179
}
180
180
#endregion
181
+
181
182
#region 执行ExecuteReader,返回MySqlDataReader
182
183
/// <summary>
183
184
/// 执行ExecuteReader,返回MySqlDataReader
Original file line number Diff line number Diff line change 5
5
修改整理全部代码,可以跑通.
6
6
7
7
2019-5-8 星期三
8
- 修复bug.
9
-
10
- 2019-6-26 星期三
11
- 优化注释,修复bug.
8
+ 修复bug.
You can’t perform that action at this time.
0 commit comments