SetPerInstanceCompatibilityLevel: No suitable method found to override

Posts   
 
    
krikke999
User
Posts: 2
Joined: 26-Dec-2010
# Posted on: 08-Feb-2011 12:38:16   

I created a C# DAL project with LLBLGen Pro framework, for a simple database. When I try to build the project in VS2010 I get the following compile error:

'Ecommerce.LLBLGenPro.DatabaseSpecific.DataAccessAdapter.SetPerInstanceCompatibilityLevel( SD.LLBLGen.Pro.ORMSupportClasses.DynamicQueryEngineBase)': no suitable method found to override D:\Projects\Marlimat\src\Ecommerce.DAL\DatabaseSpecific\DataAccessAdapter.cs 138 27 Ecommerce.LLBLGenProDBSpecific


DataAccessAdapter.cs

/// <summary>Sets the per instance compatibility level on the dqe instance specified.</summary>
        /// <param name="dqe">The dqe.</param>
        protected override void SetPerInstanceCompatibilityLevel(DynamicQueryEngineBase dqe)
        {
            if(_compatibilityLevel.HasValue)
            {
                ((DynamicQueryEngine)dqe).CompatibilityLevel = _compatibilityLevel.Value;
            }
        }

I'm using v3.1 as designer. What am I missing?

krikke999
User
Posts: 2
Joined: 26-Dec-2010
# Posted on: 08-Feb-2011 13:23:51   

krikke999 wrote:

I created a C# DAL project with LLBLGen Pro framework, for a simple database. When I try to build the project in VS2010 I get the following compile error:

'Ecommerce.LLBLGenPro.DatabaseSpecific.DataAccessAdapter.SetPerInstanceCompatibilityLevel( SD.LLBLGen.Pro.ORMSupportClasses.DynamicQueryEngineBase)': no suitable method found to override D:\Projects\Marlimat\src\Ecommerce.DAL\DatabaseSpecific\DataAccessAdapter.cs 138 27 Ecommerce.LLBLGenProDBSpecific


DataAccessAdapter.cs

/// <summary>Sets the per instance compatibility level on the dqe instance specified.</summary>
        /// <param name="dqe">The dqe.</param>
        protected override void SetPerInstanceCompatibilityLevel(DynamicQueryEngineBase dqe)
        {
            if(_compatibilityLevel.HasValue)
            {
                ((DynamicQueryEngine)dqe).CompatibilityLevel = _compatibilityLevel.Value;
            }
        }

I'm using v3.1 as designer. What am I missing?

Okay, I found the problem: some of the referenced dll's refered to version 3.0 and not 3.1. After referencing the right versions the problem was fixed.