@@ -2,11 +2,18 @@ Build 4.1.0.CR1
2
2
=============================
3
3
4
4
##### Possible Breaking Changes #####
5
- Possible breaking change: Proxies for classes that used lazy fields (not collections)
5
+ Proxies for classes that used lazy fields (not collections)
6
6
would have any exceptions from the entity wrapped in TargetInvocationException. This
7
7
wrapping exception have now been removed. Where relevant, you should instead catch
8
8
the original exception type you throw.
9
9
10
+ For LINQ queries, the startAt parameter and the return value for string.IndexOf() are
11
+ now correctly translated from .Net's 0-based indexing to SQL's 1-based indexing. LINQ
12
+ queries that are written to expect SQL semantics for IndexOf() will likely need to be
13
+ asjusted (NH-3846, NH-3901).
14
+ Example: A LINQ query should now use 'x=>x.Name.IndexOf("a") == -1' to pick objects where
15
+ the name doesn't contain the letter "a".
16
+
10
17
** Bug
11
18
* [NH-2038] - No substring length check in RemoveAsAliasesFromSql
12
19
* [NH-2127] - NHibernate cannot convert from decimal to int64 during OutputParamReturningDelegate.ExecuteAndExtract
@@ -67,7 +74,10 @@ Build 4.1.0.CR1
67
74
* [NH-3904] - Passing a user type instance as a constant parameter in a linq expression fails.
68
75
* [NH-3909] - Regression on join following refactoring of NH-3801
69
76
* [NH-3917] - SQLite Dialect does not specify any keywords except 'int'
70
- * [NH-3912] - Batch operations with the same IBatcher instance fail on expect rows count after single failed operation (Oracle)
77
+ * [NH-3912] - Batch operations with the same IBatcher instance fail on expect rows count after single failed operation (Oracle)
78
+ * [NH-3846] - Off-by-one error: LINQ to SQL of 'startIndex' (2nd) parameter - 'IndexOf()' to 'CharIndex()'
79
+ * [NH-3901] - IndexOf doesn't translate into 0-based index
80
+ * [NH-3918] - Select Expressions Cache Entities
71
81
72
82
** New Feature
73
83
* [NH-1262] - Cascade of "all-delete-orphan" not supported for one-to-one
0 commit comments