自动映射特性使用一套规则来自动映射所有实体,并非每个实体都需要映射类。
The auto mapping feature USES a set of conventions to automatically map all entities, not requesting a mapping class per entity.
我所要做的一切,就是写一个很小的映射类,就能够让这个例子对任意的表和类都适用。
All I had to do was write a tiny mapping class, and I could make the example work with any tables and classes. I had a general purpose structure.
创建一个SingletonFactory类去全局映射类名(或者是类对象)和单实例对象。
You can have a SingletonFactory class with a globally accessible map of class names or class objects to singleton instances.
应用推荐