LLBLGenProDynamicDataSource2

Posts   
 
    
lotek
User
Posts: 56
Joined: 14-Sep-2005
# Posted on: 19-Feb-2010 04:08:34   

I am experimenting with the LLBLGenProDynamicDataSource2 and would like to setup some dynamicdata controls but without scaffolding. I am trying to come up with a simple example just using a standard formview but am failing. Are there any examples or can anyone point out where i might be going wrong?


    <asp:FormView ID="test" runat="server" DataSourceID="DynamicFormView1DS">
    <ItemTemplate>
        <%# Eval("test") %>
    </ItemTemplate>
    </asp:FormView>

    <llblgen:LLBLGenProDynamicDataSource2
    id="DynamicFormView1DS" 
    runat="server" 
    DataContainerType="EntityCollection" 
    EntityFactoryTypeName="Project.DAL.FactoryClasses.TestEntityFactory" 
    EntitySetName="?"
    >
    </llblgen:LLBLGenProDynamicDataSource2>

void DynamicFormView1DS_PerformSelect(object sender, PerformSelectEventArgs2 e)
{
            DynamicFormView1DS.EntityCollection = testManager.FetchCollection();
}

lotek
User
Posts: 56
Joined: 14-Sep-2005
# Posted on: 19-Feb-2010 06:30:24   

I made some progress. I guess the LivePersistence property is required for this to work.

I still dont understand what the EntitySetName is though. Can anyone enlighten me?

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 19-Feb-2010 08:37:23   

Are you building a DynamicData site? Or you have mistakenly used LLBLGenProDynamicDataSource2 instead of LLBLGenProDataSource2?

lotek
User
Posts: 56
Joined: 14-Sep-2005
# Posted on: 19-Feb-2010 16:45:50   

Yes, i am building a dynamic data site. But i am just using formview and listview dynamic data features and not the automatic scaffolding.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 20-Feb-2010 05:31:30   

There is no example of DynamicData yet for what you are looking for. It should be pretty much the same with the ms dynamic object datasource. I will see if can come with an example of this next week.

David Elizondo | LLBLGen Support Team