Kros-sk / Kros.Libs

This repo contains Kros.Utils, Kros.Utils.MsAccess, Kros.KORM and Kros.KORM.MsAccess libraries.
MIT License
7 stars 13 forks source link

Generating dynamic methods fails on some data types (float, DateTimeOffset) #147

Closed satano closed 6 years ago

satano commented 6 years ago

Library name and version

Describe the bug

When class has properties with float (Single) or DateTimeOffset type, our generated dynamic methods throws an exception. So we cannot materialize classes with these types.

It throws two types of exception (though I do not know when is which thrown):

Steps To Reproduce

1) In DbSetShould tests (Kros.KORM\tests\Kros.KORM.UnitTests\Integration) there is a class DataTypesData with two properties commented out: ColSingle and ColDateTimeOffset. 2) Uncomment these properties. 3) Run InsertData test. 4) Test fails with exception.

Expected behavior

It whould just work. We should support these data types. They can be used in databases (SQL Server).

Some links