Hi Otis!
Good that it's possible to pass null for the sorting. I wasn't sure since I got that particular error message. It could have been because of the null I mean. But it isn't then, good!
Regarding the templates, I use the following:
Name: Two class scenario (Full) Vs.Net 2003
Version: 1.0.2004.1.053104
Vendor: Solutions Design
Description: SelfServicing. Generates code for the scenario with two classes per entity: one base class and one entity class to work with. Use this configuration to START your project as it generates all classes, including the entity classes using the entity base classes. When you have altered these entity base class using entity classes, use Two Class Scenario Base Only for your further code generation of your project. Will overwrite all classes to generate. Validator classes are initially created but never overwritten. It will also create a VS.NET 2003 project file, however will never overwrite this file.
Amount of tasks: 39
This is the Exception.Message:
"An attempt was made to load a program with an incorrect format."
I have been getting that one lately, but earlier it was always:
"Object reference not set to an instance of an object."
This is the stack trace:
" at SD.LLBLGen.Pro.ORMSupportClasses.Predicate.ToQueryText(Int32& uniqueMarker)\r\n at SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine.CreateSelectDQ(IEntityFieldCore[] selectList, IFieldPersistenceInfo[] fieldsPersistenceInfo, IDbConnection connectionToUse, IPredicate selectFilter, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IGroupByCollection groupByClause, Boolean allowDuplicates)\r\n at SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine.CreateSelectDQ(IEntityFieldCore[] selectList, IFieldPersistenceInfo[] fieldsPersistenceInfo, IDbConnection connectionToUse, IPredicate selectFilter, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relationsToWalk, Boolean allowDuplicates, IGroupByCollection groupByClause)\r\n at SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine.CreateSelectDQ(IEntityFields selectList, IDbConnection connectionToUse, IPredicate selectFilter, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relationsToWalk, B
oolean allowDuplicates, IGroupByCollection groupByClause)\r\n at netTryst.BusinessLayer.DaoClasses.TypedListDAO.GetMultiAsDataTable(IEntityFields fieldsToReturn, DataTable tableToFill, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicate selectFilter, IRelationCollection relations, Boolean allowDuplicates, IGroupByCollection groupByClause, ITransaction transactionToUse) in c:\documents and settings\robert eliaffon\my documents\visual studio projects\nettryst_dev\generated\daoclasses\typedlistdao.cs:line 72"
Hopefully you can shed some light on the subject.