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):
InvalidProgramException - JIT Compiler encountered an internal limitation.
VerificationException - Operation could destabilize the runtime.
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).
Library name and version
Describe the bug
When class has properties with
float
(Single
) orDateTimeOffset
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):
InvalidProgramException
- JIT Compiler encountered an internal limitation.VerificationException
- Operation could destabilize the runtime.Steps To Reproduce
1) In
DbSetShould
tests (Kros.KORM\tests\Kros.KORM.UnitTests\Integration
) there is a classDataTypesData
with two properties commented out:ColSingle
andColDateTimeOffset
. 2) Uncomment these properties. 3) RunInsertData
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