Skip to content

Commit

Permalink
408:NoSqlAction(修正第404修改产生删除后无法批量插入的问题)(2016-10-26)
Browse files Browse the repository at this point in the history
409:MDataTable的AcceptChanges处理重复批量(同时外部没有产生事务对象的条件下)的问题(2016-10-26)
  • Loading branch information
cyq1162 committed Oct 26, 2016
1 parent df8655c commit 1cda9f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Action/NoSqlAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ internal bool Delete(object where, out int count)
}
catch { }
}
if (isDeleteAll) { Save(); }
// if (isDeleteAll) { Save(); }
needToSaveState = 2;

return true;
Expand Down
6 changes: 3 additions & 3 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyTitle("CYQ.Data 数据层(ORM)框架 V5 版本")]
[assembly: AssemblyDescription("论坛:http://www.cyqdata.com/cyqdata")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("秋式软件 (2016-10-25)")]
[assembly: AssemblyCompany("秋式软件 (2016-10-26)")]
[assembly: AssemblyProduct("CYQ.Data 数据层(ORM)框架 V5 版本")]
[assembly: AssemblyCopyright("版权所有 (C) 秋式软件 2010-2020")]
[assembly: AssemblyTrademark("CYQ.Data")]
Expand All @@ -31,5 +31,5 @@
//
// 可以指定所有这些值,也可以使用“修订号”和“内部版本号”的默认值,
// 方法是按如下所示使用“*”:
[assembly: AssemblyVersion("5.6.7.3")]
[assembly: AssemblyFileVersion("5.6.7.3")]
[assembly: AssemblyVersion("5.6.7.4")]
[assembly: AssemblyFileVersion("5.6.7.4")]
4 changes: 2 additions & 2 deletions Table/MDataTableBatchAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,9 @@ internal bool MsSqlBulkCopyInsert(bool keepID)
}
if (isGoOn)
{
sqlTran = _dalHelper._tran as SqlTransaction;
con = _dalHelper.Con as SqlConnection;
_dalHelper.OpenCon(null);//如果未开启,则开启
_dalHelper.OpenCon(null);//如果未开启,则开启,打开链接后,如果以前没执行过数据,事务对象为空,这时会产生事务对象
sqlTran = _dalHelper._tran as SqlTransaction;
}
}
if (isGoOn)
Expand Down
4 changes: 3 additions & 1 deletion 更新记录.txt
Original file line number Diff line number Diff line change
Expand Up @@ -620,4 +620,6 @@
404��NoSqlAction �ı����ݿ��ǿɾ�����һ������ʱ�IJ����������⣨2016-10-23��
405��DBTool.GetColumns��������û��where��group by����ñ��ṹ�����⣨2016-10-24��
406��AppConfig����SetConn������ͬʱ�������ӻ���)��2016-10-24��
407��SqlCreateForPager ������ҳ��order by aa,bb û��asc�����⣨2016-10-25��
407��SqlCreateForPager ������ҳ��order by aa,bb û��asc�����⣨2016-10-25��
408��NoSqlAction��������404�޸IJ���ɾ�����޷�������������⣩��2016-10-26��
409��MDataTable��AcceptChanges�����ظ�������ͬʱ�ⲿû�в����������������£������⣨2016-10-26��

0 comments on commit 1cda9f2

Please sign in to comment.