public SetMapper(HbmSet mapping) { this.mapping = mapping; if (mapping.Key == null) { mapping.key = new HbmKey(); } keyMapper = new KeyMapper <TEntity>(mapping.Key); }
public ListMapper(HbmList mapping) { this.mapping = mapping; if (mapping.Key == null) { mapping.key = new HbmKey(); } keyMapper = new KeyMapper <TEntity>(mapping.Key); mapping.Item = new HbmListIndex(); }
public MapMapper(HbmMap mapping) { this.mapping = mapping; if (mapping.Key == null) { mapping.key = new HbmKey(); } keyMapper = new KeyMapper <TEntity>(mapping.Key); Type keyType = typeof(TKey); if (keyType.IsValueType || keyType == typeof(string)) { mapping.Item = new HbmMapKey { type = TypeUtils.GetTypeName <TKey>() }; } }