Re: [gentle] GentleList
Brought to you by:
mnmr
From: lelmarir <lel...@gm...> - 2008-01-05 20:05:58
|
the table Tabb is only a relational table, it doesn't contine data and it only exist for describe a relation of item in taba whit item in tabb, so i think it would be an n:m relation and i need to use a viaTable ("relab"). item is a row of taba and i need to retrive the items, of tabb type, related to it via relab I hope i have been clarify my mistake Morten Mertner-2 wrote: > > Hi, >> Now the code : "GentleList glist = new GentleList (typeof (Relab), >> item);" >> works correctly, but when I try to use "GentleList glist = new GentleList >> (typeof (Tabb), item, typeof (Relab));" it returns an error: >> > The tables are directly linked (TabB has FK to Relab), so you shouldn't > add the viaType argument (3rd one). That is only used for n:m relations > (yours is a 1:n relation). Also, it would be inferrable since item is of > type Relab and parent (2nd arg) is mandatory. > > Yours, > Morten > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gopf-devel mailing list > Gop...@li... > https://lists.sourceforge.net/lists/listinfo/gopf-devel > > -- View this message in context: http://www.nabble.com/GentleList-tp14618296p14638378.html Sent from the gopf-devel mailing list archive at Nabble.com. |