Re: RemoveComponent

2011-02-22 Thread Belvasis
Hm, what do you mean by using the other value? I replace a componenten for instance in the following scenario: I have a WinForm app. The app works with Navigators,Views and Presenters. A view may be a Navigator by itself and handles Subviews, similar to the settings dialog in Visual Studio. The

ActiveRecord and separation of concerns

2011-02-22 Thread smiler
Hello, I'm currently developing a WPF application using the MVVM pattern and I'm looking for a way to separate my Active Record (AR) classes in my model from the rest of my application. Currently I have a few classes mapped to my database and some methods creating an interface for my persistence

Re: RemoveComponent

2011-02-22 Thread Ryan Langton
I would think you would want to handle this by loading multiple named implementors of ISubNavigator into the container. Then just pull the one out that you want using the named value. 2011/2/22 Belvasis belvasis...@googlemail.com Hm, what do you mean by using the other value? I replace a

Re: ActiveRecord and separation of concerns

2011-02-22 Thread Mauricio Scheffer
ActiveRecord can be fully used without inheriting ActiveRecordBase, see http://www.castleproject.org/activerecord/documentation/trunk/advanced/mediator.html http://www.castleproject.org/activerecord/documentation/trunk/advanced/mediator.htmlInstead of using the static methods e.g. Post.FindAll(),

Re: RemoveComponent

2011-02-22 Thread Belvasis
Hm...but all of my presenters and views are in separate Feature assemblies and they rely on a constant name for the ISubNavigator. Sure there are ways to avoid this, but i thought i could solve this using the container without the need of additional code. 2011/2/22 Ryan Langton

Re: ActiveRecord and separation of concerns

2011-02-22 Thread Markus Zywitza
Hi Christian I'd recommend using AutoMapper to map your AR objects to your view models. This is the best solution no matter what persistence framework you are using. You can leave the persistence layer out completely for testing and visual design. DDD fans might even introduce a separated domain

Re: Castle.Facilities.AutoTx problem

2011-02-22 Thread Mauricio Scheffer
Can you create a testcase so we can reproduce it? On Feb 21, 9:41 am, Thiago Silva thiagos...@gmail.com wrote: Hello, languanghao, Did you solve your issue?? I've the same problem. On Wed, Jan 12, 2011 at 9:46 PM, languanghao languan...@gmail.com wrote: Hi, I used