You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.
ColumnSchema class had method SetParameterDbType, which set a data type for DbCommand parameter. This method was renamed to SetupParameter, because it is doing more than just setting data type. It should set Size, Precision and Scale as well.
Library name and version
Kros.KORM 3.7.x
Description
Inserting data with DbSet fails when table has some specific columns.
On SQL Server it is decimal column (at least).
On MS Access is is the long text colum.
Exception is thrown when IDbCommand.Prepare() is called. In both cases, the problem is, that command parameters does not have set every needed values: Size for text column and Precision and Scale for numeric column.
We do not support Precision and Scale in our database schema yet, so to fix this issue, we must support them.
Steps To Reproduce
Have a table with column with affected data type.
Add some data to the DbSet.
Commit data (DbSet.CommitChanges()).
Expected behavior
Inserting data should just work.
Actual behavior
Exception is thrown.
The text was updated successfully, but these errors were encountered:
Breaking changes
ColumnSchema
class had methodSetParameterDbType
, which set a data type forDbCommand
parameter. This method was renamed toSetupParameter
, because it is doing more than just setting data type. It should setSize
,Precision
andScale
as well.Library name and version
Description
Inserting data with
DbSet
fails when table has some specific columns.decimal
column (at least).long text
colum.Exception is thrown when
IDbCommand.Prepare()
is called. In both cases, the problem is, that command parameters does not have set every needed values:Size
for text column andPrecision
andScale
for numeric column.We do not support
Precision
andScale
in our database schema yet, so to fix this issue, we must support them.Steps To Reproduce
DbSet
.DbSet.CommitChanges()
).Expected behavior
Inserting data should just work.
Actual behavior
Exception is thrown.
The text was updated successfully, but these errors were encountered: