This provides an extra benefit of improving your design by introducing more abstractions and programming to them, rather than the specific class.
通过引入更多的抽象并对其编程,除了提供特别的类以外,这还提供了提高设计的额外收益。
Through careful creation of your collection class, you could create the ability to fetch groupings of users, but this is a much more technical and specific case.
通过仔细地创建集合类,您可以产生访存用户分组的能力,但这是一种更具技术性、更特殊的情况。
This class may perform a bit more slowly than its table-specific counterpart, but it saves me from having to write a lot of code.
这个类执行起来比起特定于表的类可能有点慢——但是把我从编写大量代码中解脱出来。
应用推荐