Nvelocity vs. scaffolding

2009-01-26 Thread Flominator
Hi again, since I'm quite new to VS08, C# and Castle I started programming by linking to the dll files at C:\Programm Files\Castle Project. Today I wanted to do it better by creating a lib folder within the project directory. I seemed to have found all files necessary, all unit tests were

Re: Nvelocity vs. scaffolding

2009-01-26 Thread Flominator
Forgot to mention: using RC3 Sorry, Flo --~--~-~--~~~---~--~~ 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: AR: FindAllByProperty with LIKE

2009-01-26 Thread Flominator
It worked. Thanks, Mark! --~--~-~--~~~---~--~~ 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 this group, send

Re: AR: FindAllByProperty with LIKE

2009-01-26 Thread Mark Jensen
no problem :) On Jan 26, 10:31 am, Flominator flomina...@gmx.net wrote: It worked. Thanks, Mark! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to

Re: How to do DDD + AR (repositories)

2009-01-26 Thread Colin Ramsay
Well you wouldn't necessarily have to make a repo for every entity because you'd have a generic RepoT you could use. However you might create (as an example) a UserRepo : BaseRepoUser with a FindByUsername method as a little syntactic sugar. I think many people would use a container such as

Re: How to do DDD + AR (repositories)

2009-01-26 Thread Markus Zywitza
You lose nothing with dropping ActiveRecordBase but convenience. But keep in mind: 1) AR classes without ARBase make good DTOs, but still bad domain classes. 2) Generic repositories are an antipattern. A repository should encapsulate the knowledge of an aggregate's persistence details. That

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: How to do DDD + AR (repositories)

2009-01-26 Thread Mark Jensen
:) so you would also do something like the example from the link shows, but just remove the FindAll ? On Jan 26, 12:20 pm, Ken Egozi egoz...@gmail.com wrote: my take: externally the domain API will expose specialised repositories for aggregate roots. (not all of them should have Save, and a

Re: How to do DDD + AR (repositories)

2009-01-26 Thread Mark Jensen
Hi Markus Could you explain the contradictions a bit more for me? thanks :) On Jan 26, 1:22 pm, Markus Zywitza markus.zywi...@gmail.com wrote: You lose nothing with dropping ActiveRecordBase but convenience. But keep in mind: 1) AR classes without ARBase make good DTOs, but still bad

Re: How to do DDD + AR (repositories)

2009-01-26 Thread Markus Zywitza
Code from the article you linked: public virtual T FindOne(params ICriterion[] criteria) { return ActiveRecordMediatorT.FindOne(criteria); } This moves the responsibility for creating a particular query from the repository to the higher layers, who need to

Re: WCF Facility and console self-hosted web services

2009-01-26 Thread Robert M.
It is not any missing dependency nor logging facility... If I use the following code and open ServiceHost explicitly it just works: var factory = new DefaultServiceHostFactory (IoC.Container.Kernel); host = factory.CreateServiceHost(sms_wcf, new[] {new Uri

Re: WCF Facility and console self-hosted web services

2009-01-26 Thread Craig Neuwirt
That will always create the service host regardless of missing dependencies. However, when you invoke it, it would then fail. What is the definition os sms_wcf component? On Mon, Jan 26, 2009 at 1:33 PM, Robert M. robertcmir...@gmail.com wrote: Is not the dependency nor logging facility...

Re: WCF Integration Facility Roadmap

2009-01-26 Thread Colin Jack
Couple of issues I've observed. The first was that I had my service class had constructor dependencies that I'd not registered, this was obviously silly of me but when debugging all I kept getting was 502s when trying to contact my REST resources (programatically or using Fiddler) and it took me