Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

KORM throws ArgumentException when CommitChanges is call #65

Closed
Burgyn opened this issue May 7, 2018 · 0 comments
Closed

KORM throws ArgumentException when CommitChanges is call #65

Burgyn opened this issue May 7, 2018 · 0 comments
Assignees
Labels

Comments

@Burgyn
Copy link
Member

Burgyn commented May 7, 2018

When we call the CommitChanges and there are no changes to the addition, KORM throws ArgumentException.

Error message:

System.ArgumentException : Hodnota parametra musí byť väčšia ako 0, ale skutočná hodnota je 0.
Parameter name: batchSize

Error stack trace:

at Kros.Utils.Check.GreaterThan[T](T param, T value, String paramName) in C:\projects\kros-libs-u2wo6\Kros.Utils\src\Kros.Utils\Utils\Check.cs:line 472
   at Kros.Data.IdGeneratorBase..ctor(String tableName, Int32 batchSize) in C:\projects\kros-libs-u2wo6\Kros.Utils\src\Kros.Utils\Data\IdGeneratorBase.cs:line 86
   at Kros.Data.SqlServer.SqlServerIdGeneratorFactory.GetGenerator(String tableName, Int32 batchSize) in C:\projects\kros-libs-u2wo6\Kros.Utils\src\Kros.Utils\Data\SqlServer\SqlServerIdGeneratorFactory.cs:line 45
   at Kros.KORM.Query.QueryProvider.CreateIdGenerator(String tableName, Int32 batchSize) in C:\projects\kros-libs-u2wo6\Kros.KORM\src\Kros.KORM\Query\Providers\QueryProvider.cs:line 449
   at Kros.KORM.Query.DbSet`1.GeneratePrimaryKeys(HashSet`1 items) in C:\projects\kros-libs-u2wo6\Kros.KORM\src\Kros.KORM\Query\DbSet.cs:line 297
   at Kros.KORM.Query.DbSet`1.CommitChangesAddedItems(HashSet`1 items) in C:\projects\kros-libs-u2wo6\Kros.KORM\src\Kros.KORM\Query\DbSet.cs:line 279
   at Kros.KORM.Query.DbSet`1.<CommitChanges>b__21_0() in C:\projects\kros-libs-u2wo6\Kros.KORM\src\Kros.KORM\Query\DbSet.cs:line 246
   at Kros.KORM.Query.QueryProvider.ExecuteInTransaction(Action action) in C:\projects\kros-libs-u2wo6\Kros.KORM\src\Kros.KORM\Query\Providers\QueryProvider.cs:line 250
   at Kros.KORM.UnitTests.Integration.DbSetShould.UpdateData() in C:\projects\kros-libs-u2wo6\Kros.KORM\tests\Kros.KORM.UnitTests\Integration\DbSetShould.cs:line 103
@Burgyn Burgyn added bug Something isn't working area-Kros.KORM up-for-grabs labels May 7, 2018
@Burgyn Burgyn added this to the Kros.KORM v3.7.0 milestone May 7, 2018
@Burgyn Burgyn self-assigned this May 7, 2018
@Burgyn Burgyn closed this as completed in #68 May 9, 2018
@Burgyn Burgyn removed this from the Kros.KORM v3.7.0 milestone May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant