TableValuedFunctionCall

Posts   
 
    
Kris Nobels avatar
Posts: 118
Joined: 02-Apr-2008
# Posted on: 17-Aug-2013 23:21:36   

I upgraded llblgen from 3.5 to 4.0

When I use LLBLgen to run LLBLgen Pro Runtime framework

The QueryFactory class is different when you generate it with 3.5 and 4.0 (for .Net 4.5)

You can not build the DatabaseGeneric project because you have a missing reference.

Error is located in DatabaseGeneric/FactoryClasses/QueryFactory (Line +/- 40)


        /// <summary>Creates a new DynamicQuery which wraps the specified TableValuedFunction call</summary>
        /// <param name="toWrap">The table valued function call to wrap.</param>
        /// <returns>toWrap wrapped in a DynamicQuery.</returns>
        public DynamicQuery Create(TableValuedFunctionCall toWrap)
        {
            return this.Create().From(new TvfCallWrapper(toWrap)).Select(toWrap.GetFieldsAsArray().Select(f => this.Field(toWrap.Alias, f.Alias)).ToArray());
        }

My questions are:

  • Is this normal behaviour?
  • Do I need to add a reference manualy every time i generate this DAL layer
  • What is the missing reference btw and where can i find it
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 19-Aug-2013 06:58:08   

Did you update the ORMSupportClasses in your generated project from v3.5 to v4? (Now QuerySpec is included in the ORMSupportClasses assembly).

David Elizondo | LLBLGen Support Team