Re: Adding and associating an nhibernate facility programmatically

2009-04-29 Thread Victor Kornov
var facility = new MutableConfiguration(facility); // isWeb indicates to facility wee are in web context, so it'll use SessionWebModule httpModule // to setup session context for the duration of web request facility.Attribute(isWeb, true).CreateChild(factory).Attribute(id, nhibernate.factory);

Re: Windsor -- Resolve When Dependency Is a Generic List

2009-04-16 Thread Victor Kornov
using Castle.MicroKernel.Resolvers.SpecializedResolvers.ListResolver ? On Fri, Apr 17, 2009 at 6:58 AM, Stuart Laughlin stu...@bistrotech.netwrote: I was surprised when I discovered that this test fails with a NotImplementedException originating from

Re: Windsor -- Resolve When Dependency Is a Generic List

2009-04-16 Thread Victor Kornov
IListFoo. On Fri, Apr 17, 2009 at 7:42 AM, Stuart Laughlin stu...@bistrotech.netwrote: On Thu, Apr 16, 2009 at 10:02 PM, Victor Kornov wee...@gmail.com wrote: using Castle.MicroKernel.Resolvers.SpecializedResolvers.ListResolver ? Ah, very nice! Only how do I use it? I can't find much help

Re: Just constructor injection from fluent interface?

2009-04-09 Thread Victor Kornov
There is also [DoNotWire] attrib in Castle.Core On Thu, Apr 9, 2009 at 5:29 PM, Paul Hatcher pa...@grassoc.co.uk wrote: Is there a way of telling Castle not to wire up properties via the fluent interface, i.e. to just do constructor injection?

Re: Just constructor injection from fluent interface?

2009-04-09 Thread Victor Kornov
Not sure if PropertyInspector supports specifying wiring behaviour through configuration. If it is, then you can build custom extension for registration API to control that. On Thu, Apr 9, 2009 at 7:29 PM, Paul Hatcher pa...@grassoc.co.uk wrote: I'm trying to avoid coupling the assembly to

Re: Where/how to register per-request objects

2009-04-07 Thread Victor Kornov
private IPresenter InitializePresenter(object view) { IDictionary arguments = new Hashtable(1); arguments.Add(view, view); IPresenter presenter = IoC.ResolveIPresenter(_presenterType, arguments); presenter.Initialize(); PresentersCache.Put(view, presenter); return presenter; } public abstract

Re: [Property] on [BelongsTo] association column

2009-04-01 Thread Victor Kornov
AFAIK, ID of lazy-loaded entity is available without fetching it from the DB. On Wed, Apr 1, 2009 at 9:08 PM, Bill Barry after.fall...@gmail.com wrote: Danyal Aytekin wrote: Do you need to have both? You could have the first and then to access the ID you could use Report.ReportID (or

Re: ARDataBind and Arrays of Objects

2009-04-01 Thread Victor Kornov
Is AbstractPerson an abstract class? Then how binder should know what class to instantiate? On Thu, Apr 2, 2009 at 1:24 AM, agilejedi d...@agilejedi.com wrote: Trying to make this action work: public void Save([ARDataBind(person)] AbstractPerson[] people){ } people always returns empty. I

Re: Expected IIS memory usage for e-commerce castle app

2009-03-03 Thread Victor Kornov
http://stackoverflow.com/questions/49912/best-dotnet-memory-and-performance-profiler On Wed, Mar 4, 2009 at 2:24 AM, Stefan Sedich stefan.sed...@gmail.comwrote: I would suggest getting a tool like ANTS profiler to see if you can --~--~-~--~~~---~--~~ You

Re: Monorail Subtext

2009-02-26 Thread Victor Kornov
IIRC, I've seen it on googlecode... On Thu, Feb 26, 2009 at 10:33 PM, Ken Egozi egoz...@gmail.com wrote: coool. btw, my blog runs on a hacked-together MR/Windsor/AR thing. very rough as I have no time to make things better. I'll put it on gitHub if you'd like to try and customise it for

Re: TraceContext in Monrail

2009-02-18 Thread Victor Kornov
Using asp.net response filters? On Wed, Feb 18, 2009 at 10:54 PM, James Curran james.cur...@gmail.comwrote: 3) If the answer to #2, is Yes, where should it be inserted. (Right now, it's an extension method on Controller, so calling 'this.RenderTrace('trace);' will put the full HTML of the

Re: hyperlink Wrap around

2009-02-11 Thread Victor Kornov
a href=Url.For( ) img name=... src=... / /a --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from

Re: hyperlink Wrap around

2009-02-11 Thread Victor Kornov
=$Url.For(%{controller='product', action='pageName', params= {prodId=199 On Feb 11, 10:23 am, Victor Kornov wee...@gmail.com wrote: a href=Url.For( ) img name=... src=... / /a --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: aspview and generics

2009-02-04 Thread Victor Kornov
+1 On Wed, Feb 4, 2009 at 5:59 PM, Colin Ramsay colinram...@gmail.com wrote: Wouldn't Url.create be Url.Create, anyway? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to

Re: How to do DDD + AR (repositories)

2009-01-26 Thread Victor Kornov
This cries for at least to mention those other patterns. On Mon, Jan 26, 2009 at 3:22 PM, Markus Zywitza markus.zywi...@gmail.comwrote: The Domain Model is not the only enterprise pattern that yields maintainable software. --~--~-~--~~~---~--~~ You received

Re: NewtonsoftJSONSerializer dataset issue

2009-01-14 Thread Victor Kornov
Look for Projections On Wed, Jan 14, 2009 at 8:00 PM, Wayne Douglas wa...@codingvista.comwrote: Normally I'd use LLBLGEN to grab the data into a more reasonable object and then serialize that - I'm trying to use NHibernate here as much as I can but a bit pressed for time to get a prototype

Re: Routing Documentation Effort

2008-11-24 Thread Victor Kornov
Could be a switch on Routing Engine/routing rule level. On Mon, Nov 24, 2008 at 6:42 PM, Colin Ramsay [EMAIL PROTECTED] wrote: This leads me to the question: should routing be bypassed like this? Would it be better if there was some kind of check for a matching route even if the physical

Re: DataBinding collections

2008-11-24 Thread Victor Kornov
You want your custom (different from default) logic for binding collections. Seems natural to build your own parameter binder :) On Tue, Nov 25, 2008 at 2:05 AM, Mike Nichols [EMAIL PROTECTED]wrote: What is the best way to send a collection of composed objects in a request for databinding

Re: Castle e Telerik Reporting

2008-11-20 Thread Victor Kornov
simplest: YourEntity.FindAll() = that's option A. On Thu, Nov 20, 2008 at 8:56 PM, Welkson Renny de Medeiros [EMAIL PROTECTED] wrote: Hi guys! Information on Telerik Manual: Reports can use any of the following data sources: a.. Any component that implements IEnumerable, including

Re: testing return binders

2008-11-17 Thread Victor Kornov
This may have the answer http://hammett.castleproject.org/?p=260 On Tue, Nov 18, 2008 at 12:37 AM, Jan Limpens [EMAIL PROTECTED] wrote: How could I test that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle

Re: Windsor Context

2008-11-13 Thread Victor Kornov
IContext.CurrentUser = inject the context to service. At different times/projects I had that CurrentUser on IAuthenticationService, IAccountService etc. On Fri, Nov 14, 2008 at 3:05 AM, Colin Ramsay [EMAIL PROTECTED] wrote: This is more of a general IoC question, but I'm using Windsor so it

Re: building with .net 3.5

2008-11-12 Thread Victor Kornov
I'm not a VM user, so don't know. On Thu, Nov 13, 2008 at 2:10 AM, Jan Limpens [EMAIL PROTECTED] wrote: Is there a way to legally download a (readonly) vm of a regular xp to try that out? --~--~-~--~~~---~--~~ You received this message because you are

Re: AR + DDD Properly Deleting Objects

2008-10-28 Thread Victor Kornov
btw, is there a reason for that other than AR/NH being incapable (or we) to do that simpler way (i.e. just detaching it from relevan aggregate root)? On Wed, Oct 29, 2008 at 1:07 AM, Ken Egozi [EMAIL PROTECTED] wrote: create ICartRepository in the domain layer and ARCartRepository in the

Re: Mail Template Components

2008-09-25 Thread Victor Kornov
Some time ago, when I encountered similar problem with AspView, I've toyed with the idea of MailController. You know, like there are alredy RescueController. That turned out to be too much work for me at the moment. Having such controller would allow for helpers and components in the view. On the

Re: Mail Template Components

2008-09-25 Thread Victor Kornov
For that, text templating engine needs to be decoupled from the ViewEngine itself. That's the only thing you need here, no? On Thu, Sep 25, 2008 at 4:45 PM, Ken Egozi [EMAIL PROTECTED] wrote: I am thinking of taking it to the other extreme. I want to invest some time into allowing the use of

Re: Mail Template Components

2008-09-25 Thread Victor Kornov
And some kind of context, different from web context. So, View engine could operate in either environment. On Thu, Sep 25, 2008 at 4:48 PM, Victor Kornov [EMAIL PROTECTED] wrote: For that, text templating engine needs to be decoupled from the ViewEngine itself. That's the only thing you need

Re: Trouble with Routing.

2008-09-23 Thread Victor Kornov
Won't it be available on source servers like the rest of FW? But that will be next to useless in such situation considering license problems.I guess that could help with internal projects though :) On Wed, Sep 24, 2008 at 3:23 AM, hammett [EMAIL PROTECTED] wrote: Very good point, I dont think

Re: WebUserControlComponentActivator

2008-09-12 Thread Victor Kornov
man, I'd leave old things alone and use Monorail for new dev... On Fri, Sep 12, 2008 at 6:19 PM, Wayne Douglas [EMAIL PROTECTED]wrote: I'm updating a fairly complex app - the problem I have is that there are hundreds of reports each with databound graphs, maps and tables that need to be

Re: WebUserControlComponentActivator

2008-09-12 Thread Victor Kornov
Depends on what you need. It doesn't seem to be able to pass ctor params either. On Fri, Sep 12, 2008 at 6:55 PM, Wayne Douglas [EMAIL PROTECTED]wrote: BuildManager.CreateInstanceFromVirtualPath --~--~-~--~~~---~--~~ You received this message because you are

Re: ValidateIsUnique vs. Testing

2008-09-10 Thread Victor Kornov
Confirmed, that works. I've moved from ValidateIsUniqueAttribute later anyways. On Wed, Sep 10, 2008 at 9:16 PM, Eric Hauser [EMAIL PROTECTED] wrote: One way would be to create a new validation registry that mimics the behavior of CachedValidationRegistry, but ignores that particular