Maybe we should use the one in EF4!
http://msdn.microsoft.com/en-us/library/system.data.entity.design.pluralizationservices.pluralizationservice%28VS.100%29.aspx

John



From: Krzysztof Koźmic <[email protected]>
To: Castle Project Devel <[email protected]>
Cc: 
Sent: Tuesday, 1 March 2011 1:43 PM
Subject: Move Inflector to Castle.Core.dll


Hi,

I've been looking at extending Windsor's DefaultInterface method for matching 
services to components to support generics and I found that in many cases the 
naming pattern uses plural form.

so you have:

public class CustomersRepository:IRepository<Customer> { }

so to match that it would make sense to use Inflector to pluralize the name of 
the class to match the service properly.

So does anyone have any objections against moving Inflector class for 
ActiveRecord to Castle.Core.dll ?

I think it has more generic usage than just for AR.

Krzysztof

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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-devel?hl=en.


      

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" 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-devel?hl=en.

Reply via email to