How fool i am. you are right. thanx for your attention..
On 12 Ağustos, 08:33, Christian Würdig <[email protected]> wrote:
> From your screenshot your code looks like this:
>
> public void Insert(T item)
> {
> try {
> Insert(item); // the function calls itself again ->
> infinite recursion
> }
> catch
> {
> }
>
> }
>
> Unless I'm missing something.
>
>
>
> olcay şeker wrote:
> > thanks for your answer. it works when i am using
> > ActiveRecordMediator.Save(item) instead of inheriting
> > ActiveRecordBase. but i only call insert method once. but first i get
> > instence of this class from windsor container. after i call this
> > method it overflows but nothing entered to db. am i doing something
> > wrong for instance wrong pattern usage or container usege?. i can send
> > simple code example if it helps?
>
> > On 12 Ağustos, 03:11, Christian Wuerdig <[email protected]> wrote:
>
> >> That is because you are recursively calling Insert and that never stops ->
> >> Stackoverflow
> >> I also think your repository should not inherit from ActiveRecordBase
> >> (assuming that you want to use the repository pattern)
> >> -------- Original Message --------
> >> Subject: AR insert overflow
> >> From: deli mavi<[email protected]>
> >> To:[email protected]
> >> Date: 12/08/2009 11:47 a.m.i am using AR rc3. as you can see in attachment
> >> when i try to insert an item to db, VS gives a stackoverflow exception. is
> >> it because of that i am using generic classes??
>
> >> image_png_part
> >> 348KGörüntüleİndir
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---