Castle ActiveRecord 2.12 で次のクエリに問題があります。
var q = from o in SodisceFMClientVAR.Queryable
where taxnos2.Contains(o.TaxFileNo)
select o;
taxNos2 は文字列の配列です。
実行すると例外が発生します: +
InnerException {"インデックスが範囲外でした。負ではなく、コレクションのサイズより小さい必要があります。\r\nパラメータ名: index"} System.Exception {System.ArgumentOutOfRangeException}
StackTrace " at
Castle.ActiveRecord.ActiveRecordBase.ExecuteQuery(IActiveRecordQuery query)\r\n Castle.ActiveRecord.Linq.LinqResultWrapper
1.Populate()\r\n at Castle.ActiveRecord.Linq.LinqResultWrapper
1.GetEnumerator()\r\n NHibernate.Linq.Query1.GetEnumerator()\r\n at System.Linq.Buffer
1..ctor(IEnumerable1 source)\r\n at System.Linq.Enumerable.ToArray[TSource](IEnumerable
1 source)\ r\n n at prosoft.skb.insolventnostDataAccess.InsolventnostDataAccAR.GetOurUsersListLS(ICollection1 taxNos) in C:\\svn\\skb\\insolventnostWithAR\\prosoft.skb.insolventnostDataAccess\\InsolventnostDataAR.cs:line 214\r\n at prosoft.skb.insolventnostDataFromWS.InsolventnostFromWS.filterByOurUsers(IEnumerable
1 odprtiPostopki) C:\svn\skb\insolventnostWithAR\prosoft.skb.insolventnostDataFromWS\InsolventnostFromWS.cs:line 237\r\n at prosoft.skb.insolventnostDataFromWS.InsolventnostFromWS .SyncData() in C:\svn\skb\insolventnostWithAR\prosoft.skb.insolventnostDataFromWS\InsolventnostFromWS.cs:53 行目文字列
Contains は nhibernate の linq でも機能しますか? Google 経由で何も見つかりませんでした...回避策はありますか?
ありがとう!