Exemplo n.º 1
0
 public SetMapper(HbmSet mapping)
 {
     this.mapping = mapping;
     if (mapping.Key == null)
     {
         mapping.key = new HbmKey();
     }
     keyMapper = new KeyMapper <TEntity>(mapping.Key);
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
        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>()
                };
            }
        }