-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed BullInsert API for csharp issue.
- Loading branch information
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#if($host.generateAPI(54)) | ||
/// <summary> | ||
/// 批量插入${host.getClassName()} | ||
/// </summary> | ||
/// <param name="${WordUtils.uncapitalize(${host.getClassName()})}">${host.getClassName()}实体对象列表</param> | ||
/// <returns>状态代码</returns> | ||
public bool BulkInsert${host.getClassName()}(IList<${host.getClassName()}> ${WordUtils.uncapitalize(${host.getClassName()})}List) | ||
{ | ||
try | ||
{ | ||
return baseDao.BulkInsert<${host.getClassName()}>(${WordUtils.uncapitalize(${host.getClassName()})}List); | ||
} | ||
catch (Exception ex) | ||
{ | ||
throw new DalException("调用${host.getClassName()}Dao时,访问BulkInsert时出错", ex); | ||
} | ||
} | ||
#end | ||
#if($host.generateAPI(74)) | ||
#if($host.getDatabaseCategory().name() == "MySql" ) | ||
/// <summary> | ||
/// 批量插入${host.getClassName()} | ||
/// </summary> | ||
/// <param name="${WordUtils.uncapitalize(${host.getClassName()})}">${host.getClassName()}实体对象列表</param> | ||
/// <returns>状态代码</returns> | ||
public bool BulkInsert${host.getClassName()}(IList<${host.getClassName()}> ${WordUtils.uncapitalize(${host.getClassName()})}List) | ||
{ | ||
try | ||
{ | ||
return baseDao.BulkInsert<${host.getClassName()}>(${WordUtils.uncapitalize(${host.getClassName()})}List); | ||
} | ||
catch (Exception ex) | ||
{ | ||
throw new DalException("调用${host.getClassName()}Dao时,访问BulkInsert时出错", ex); | ||
} | ||
} | ||
#end | ||
#end | ||
|