Compile time error in dbEditor template generated code...
- LLBLGenPro version v2.0.0.0 Dec 6, 2006.
- SD.LLBLGen.Pro.ORMSupportClasses.NET20.dll version 2.0.0.061205
- Adapter and .NET 2.0
- C#
- SQL Server backend
- Templates were downloaded last week - the Jan 8 Beta version
I have an entity that contains two fields containing foreign keys to another table (each field points to the same table). If I set the "UseLookupDropDownList" custom property on BOTH of these fields in order to get a nice pick list for them, the code generates two LLBLGenProDataSource2 server controls - one for each of these DropDownLists - but they get the same ID. See generated code snippet below in which the ID is "_AuthorizationLevel_IdDS" for both:
<tr>
<td width="20" nowrap="nowrap" class="content"> </td>
<td class="formtexts" >
AccessibilityAuthorizationLevel:
</td>
<td class="content">
<llblgenpro:LLBLGenProDataSource2 ID="_AuthorizationLevel_IdDS" runat="server" DataContainerType="EntityCollection" AdapterTypeName="Artifacts.DatabaseSpecific.DataAccessAdapter, ArtifactsDBSpecific" EntityFactoryTypeName="Artifacts.FactoryClasses.AuthorizationLevelEntityFactory, Artifacts"/>
<asp:DropDownList ID="cbxAccessibilityAuthorizationLevel" runat="server" AppendDataBoundItems="true" SelectedValue='<%# Bind("AccessibilityAuthorizationLevel") %>' DataSourceID="_AuthorizationLevel_IdDS" DataValueField="Id" DataTextField="Id">
</asp:DropDownList>
</td>
<td width="20" nowrap="nowrap" class="content"> </td>
</tr>
<tr>
<td width="20" nowrap="nowrap" class="content"> </td>
<td class="formtexts" >
VisibilityAuthorizationLevel:
</td>
<td class="content">
<llblgenpro:LLBLGenProDataSource2 ID="_AuthorizationLevel_IdDS" runat="server" DataContainerType="EntityCollection" AdapterTypeName="Artifacts.DatabaseSpecific.DataAccessAdapter, ArtifactsDBSpecific" EntityFactoryTypeName="Artifacts.FactoryClasses.AuthorizationLevelEntityFactory, Artifacts"/>
<asp:DropDownList ID="cbxVisibilityAuthorizationLevel" runat="server" AppendDataBoundItems="true" SelectedValue='<%# Bind("VisibilityAuthorizationLevel") %>' DataSourceID="_AuthorizationLevel_IdDS" DataValueField="Id" DataTextField="Id">
</asp:DropDownList>
</td>
<td width="20" nowrap="nowrap" class="content"> </td>
</tr>