private void SetElement(Member property, ClassMappingBase classMap, ICollectionMapping mapping) { var element = new ElementMapping { ContainingEntityType = classMap.Type, Type = new TypeReference(property.PropertyType.GetGenericArguments()[0]) }; element.AddDefaultColumn(new ColumnMapping { Name = cfg.SimpleTypeCollectionValueColumn(property) }); mapping.SetDefaultValue(x => x.Element, element); }
private void SetElement(Member property, ClassMappingBase classMap, CollectionMapping mapping) { var element = new ElementMapping { ContainingEntityType = classMap.Type, }; element.Set(x => x.Type, Layer.Defaults, new TypeReference(property.PropertyType.GetGenericArguments()[0])); var columnMapping = new ColumnMapping(); columnMapping.Set(x => x.Name, Layer.Defaults, cfg.SimpleTypeCollectionValueColumn(property)); element.AddColumn(Layer.Defaults, columnMapping); mapping.Set(x => x.Element, Layer.Defaults, element); }