Am I using IRepository correctly?
问题 I'm looking to use the IRepository pattern (backed by NHibernate, if it matters) in a small project. The domain is a simple one, intentionally so to allow me to focus on understanding the IRepository pattern. The lone domain class is Movie , with properties for Year , Genre , and Title . My intent would be to "get" movies whose properties match criteria of the aforementioned types. Convention seems to be to have a generic IRepository interface, similar to the following: public interface