Linq queries should support boolean types
Number: | 1287 |
Tracker: | Change Request |
Author: | Mirko Matytschak |
Version: | NDO 4.0 |
Assigned to: | Mirko Matytschak |
Status: | In Bearbeitung |
SQL Server stores boolean values as bit. Thus the queries have to be written like:
SELECT * FROM SampleTable WHERE myBooleanColumn = 1
The following queries should be translated into this Expression:
var result = pm.Objects().Where(s=>s.MyBooleanColumn); // doesn't work var result = pm.Objects ().Where(s=>s.MyBooleanColumn == true); // works
Since MyBooleanColumn is a boolean value, we somehow must accomplish an automatic conversion
Mirko Matytschak - 19.10.2016 10:56:31
Description changed
Mirko Matytschak - 07.11.2016 18:06:43
Version = NDO 3.0.0.8
Mirko Matytschak - 10.11.2016 12:54:56
Version = NDO 3.0.0.9
Mirko Matytschak - 29.01.2019 13:32:55
There is a UnitTest LinqTestBooleanExpression() in LinqTests.cs.
Status = In Bearbeitung
Version = NDO 4.0