Just forget that Repository<T> exists, please.
Posted by: More Whidbey stuff,
on 29 Jan 2015 |
View original | Bookmarked: 0 time(s)
If theres a class thats caused Orchard users more confusion, bugs, and disappointment than Repository<T>, Id like to know about it Generic repositories are a well-known anti-pattern, something that the designers of the Orchard data layer were fully aware of, but decided to use anyway as helpers in the implementation of this piece of code that bridges Orchards runtime dynamic type system to nHibernates database mappings. The class should arguably have been made internal or private (which is...