Skip to content

Commit

Permalink
Fixed BullInsert API for csharp issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyenan committed Oct 11, 2016
1 parent ee41b3b commit 9cca0bc
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,12 @@ namespace ${host.getNameSpace()}.Interface.IDao
long Count();
#end
#if($host.generateAPI(54))
#if($host.isHasSptI() && $host.getDatabaseCategory().name()!="MySql" )
/// <summary>
/// 批量插入${host.getClassName()}
/// </summary>
/// <param name="${WordUtils.uncapitalize(${host.getClassName()})}">${host.getClassName()}实体对象列表</param>
/// <returns>状态代码</returns>
int BulkInsert${host.getClassName()}(IList<${host.getClassName()}> ${WordUtils.uncapitalize(${host.getClassName()})}List);
#end
bool BulkInsert${host.getClassName()}(IList<${host.getClassName()}> ${WordUtils.uncapitalize(${host.getClassName()})}List);
#end
#if($host.generateAPI(74))
#if($host.getDatabaseCategory().name() == "MySql")
Expand Down
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

0 comments on commit 9cca0bc

Please sign in to comment.