in

CodeSmith Community

Your Code. Your Way. Faster!

Deepload error: myroot.Web.Data.ILinkedDataSource does not contain a definition for 'Deepload'

Last post 04-15-2008 4:02 AM by Xymilato. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-20-2007 11:21 AM

    • lblebea
    • Not Ranked
    • Joined on 02-20-2007
    • Posts 2
    • Points 130

    Deepload error: myroot.Web.Data.ILinkedDataSource does not contain a definition for 'Deepload'

    I have used Nettiers 2.0 and never had this problem. I downloaded the nightly build 12_20_2007, and after generating the code and building it, I got an error in the EntityRelationshipMember.cs. Here it is. The error says : myroot.Web.Data.ILinkedDataSource does not contain a definition for 'Deepload. I temporarily commented out the code where the error appears, but I am hoping that this can be fixed.

    Public void Deepload()

    {

    if ( HasDataSource && EnableDeepLoad)

    {

    GetLinkedDataSource().Deepload();

    }

    }

    • Post Points: 95
  • 03-16-2007 11:38 AM In reply to

    Re: Deepload error: myroot.Web.Data.ILinkedDataSource does not contain a definition for 'Deepload'

    I am experiencing exactly the same problem. Is there a solution as yet?
    Filed under:
    • Post Points: 5
  • 03-30-2007 3:33 PM In reply to

    • fendric
    • Not Ranked
    • Joined on 10-09-2006
    • Posts 1
    • Points 5

    Re: Deepload error: myroot.Web.Data.ILinkedDataSource does not contain a definition for 'Deepload'

    I got a similar error.

    I noticed that this occurs if I have the options IncludeManyToMany and IncludeRelations turned off in the CRUD section.

    If I turn those on I don't get the error.

    I guess without these options the DeepLoad methods aren't generated by the tempate, though the bases classes still require an implementation.

    • Post Points: 5
  • 03-28-2008 3:32 AM In reply to

    • Xymilato
    • Not Ranked
    • Joined on 03-27-2008
    • Posts 2
    • Points 10

    Re: Deepload error: myroot.Web.Data.ILinkedDataSource does not contain a definition for 'Deepload'

    I've had the exact same problem. I looked in the ILinkedDataSource and found an if statement around the Deepload. The includeManytomany and includerelationships have to be true, otherwise the Deepload in the interface is not generated.

    In the other places where the Deepload is used the same if statement is used (for example in the customdatasource.cst). In the EntityRelationshipMember.cst this if statement is not present.

    Result:
    When using a web project you can never turn of manytomany/relationships otherwise your webproject will alway be corrupt.

    Only fix is to change the EntityRelationshipMember.cst. Just put this in the file:
    <%@ Property Name="IncludeRelations" Type="System.Boolean" Default="True" Category="CRUD Options" Description="If true, the child collection relationships will be generated within your entities, if set to false, these child collections will not be generated, and Deep Load/Save will not be generated." %>
    <%@ Property Name="IncludeGetListByFK" Type="System.Boolean" Default="True" Category="CRUD Options" Description="If true get statements will be generated." %>

    Search for deepload and set the if statement around all the code where deepload is used:
    <% if ( IncludeRelations && IncludeGetListByFK ) { %>
    <% } // end if ( IncludeRelations && IncludeGetListByFK ) %>

    I have version 2.2.0 by the way. Can this bug be fixed in a stable build?

    • Post Points: 5
  • 04-15-2008 4:02 AM In reply to

    • Xymilato
    • Not Ranked
    • Joined on 03-27-2008
    • Posts 2
    • Points 10

    Re: Deepload error: myroot.Web.Data.ILinkedDataSource does not contain a definition for 'Deepload'

    The problem was solved after we migrated the SQL Server 2000 database to a 2005 database. Everything works fine then. So it's just a bug for SQL Server 2000.

    • Post Points: 5
Page 1 of 1 (5 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems