TypedList Class error after 1.0.2004.2 upgrade

Posts   
 
    
Posts: 3
Joined: 27-Oct-2005
# Posted on: 27-Oct-2005 23:33:16   

Just upgraded to LLBLGen 1.0.2004.2 Final and we've run into a problem rebuilding an existing project. Using VS.NET 2003 and the .NET 1.1 Framework, and SQL Server 2000. Building the LLBLGen project with the regenerated code is throwing an error on a file called StateListTypdList. This is an existing file from the previous version of the project, that doesn't seem to be modified at all by the new project generation.

Here is the specific error:

C:\ [ ... ] \TypedListClasses\StateListTypedList.cs(40): 'WSCSData.TypedListClasses.StateListTypedList' does not implement interface member 'SD.LLBLGen.Pro.ORMSupportClasses.ITypedListLgp.GetDbCount(bool, SD.LLBLGen.Pro.ORMSupportClasses.IPredicateExpression, SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection, SD.LLBLGen.Pro.ORMSupportClasses.GroupByCollection)'

Here is a snippet of the code being referenced, the start of the class in question.

[Serializable, System.ComponentModel.DesignerCategory("Code")]
public class StateListTypedList : TypedListBase, IEnumerable, ITypedListLgp
{
    #region Class Member Declarations


    private static Hashtable    _customProperties;
    private static Hashtable    _fieldsCustomProperties;
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 28-Oct-2005 11:16:33   

Could you verify if the file is actually overwritten? (check the header in the generated code, it has the date/time in it).

Frans Bouma | Lead developer LLBLGen Pro
Posts: 3
Joined: 27-Oct-2005
# Posted on: 28-Oct-2005 18:37:08   

No, the file is not being overwritten. Here are the comments indicating which version of LLBLGen did generate the class.

// Code is generated using LLBLGen Pro version: 1.0.2004.1 // Code is generated on: Wednesday, October 06, 2004 9:38:22 PM // Code is generated using templates: C# template set for SqlServer (1.0.2004.1) // Templates vendor: Solutions Design. // Templates version: 1.0.2004.1.092904

The issue is that the previous version of LLBLGen generated a project that included this class, that compiled cleanly and worked. The new version of LLBLGen is generating/changing something that is not meshing with the old code.

Thank you for your help.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 28-Oct-2005 21:24:50   

Ok, so either removing this class or making it be overwritten should solve it.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 3
Joined: 27-Oct-2005
# Posted on: 28-Oct-2005 21:52:52   

Well, removing the class causes several other errors when we try to compile. How do I force LLBLGen to overwrite it?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 29-Oct-2005 10:54:47   

rainbird997 wrote:

Well, removing the class causes several other errors when we try to compile. How do I force LLBLGen to overwrite it?

It normally will overwrite it, unless it's readonly. Could you check if it's readonly? (for example, if it's in sourcesafe, you've to check out the file before generating code.)..

In all cases, please examine the generator report after code generation. There the task result will be shown for that particular typed list and if it's not overwritten, the reason why.

Frans Bouma | Lead developer LLBLGen Pro