views:

22

answers:

0

I have a problem with include in EF, ASP.NET and dropdownlist.

with the asp.net page : <asp:EntityDataSource ID="ds" runat="server" ConnectionString="name=CoreEntities" DefaultContainerName="CoreEntities" EnableFlattening="False" EntitySetName="Articles" Include="TraductionTitre"> </asp:EntityDataSource> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="ds" DataTextField="TraductionTitre.tFr" DataValueField="aId"> </asp:DropDownList>

I have the following error :

DataBinding : 'CoreLibrary.Article' does not have a public property named'TraductionTitre.tFr'.

I don't understand why Include doesn't work...