> I'm having a problem with ibatis V3 when attempting to map to the
> class System.Web.UI.WebControls.ListItem. It seems that ibatis cannot
resolve
> ListItem (we stick data in the ListItem class for simple lookups instead
of
> creating a new class)

I would guess that iBATIS doesn't know where to find the ListItem type.

Try something like

<alias>
        <typeAlias alias="ListItem"
type="System.Web.UI.WebControls.ListItem, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</alias>

<resultMap id="Grades-result" class="ListItem">
... etc

This would tell iBATIS something like "Hey, the ListItem type is in
System.Web.dll, and go look for it in the GAC."

V/R,
Nicholas Piasecki

Reply via email to