Originally posted by Dominique
The problem was that I had the same order clause added twice to a spanQuery I think that the ideablade framework should check for that and give a good exception as it will result to an error in the core dotnet.
code snippet that illustrated the faulty code aSpanQuery.AddSpan(EntityRelations.Order_OrderLines) aSpanQuery.AddOrderBy(Order.ShipDateEntityColumn, System.ComponentModel.ListSortDirection.Descending) -- (a) aSpanQuery.AddOrderBy(Order.ShipDateEntityColumn, System.ComponentModel.ListSortDirection.Descending) ' OOPS same as (a)
Dim tmp As EntityList(Of Order) = mPersistMng.GetEntities(Of Order)(aSpanQuery) 'KABOUM!
|
Thanks for the heads up, Dominique: I've entered this as a bug. We'll see if we can get you a better error message.
Regards
Greg Dunn
IdeaBlade