I have 2 datatables:
data
-----------
GUID
Value
DataTypeGUID
dataType
-----------
GUID
Name
Code:
HasMany<AddressDetail>(x => x.data).AsMap<string>("Value").KeyColumn("DataTypeGUID").Cascade.All();
With this mapping i can get an IDictionary with data.Value as Key and data as Value
Now want to have an IDictionary with dataType.Name as Key.
Code:
HasMany<AddressDetail>(x => x.data).AsMap<string>("Name").KeyColumn("DataTypeGUID").Cascade.All();
doesn't work!!!
How can i get a the name of dataType as the Key of the dictionary? DataTypeGUID references to the datatype in the table.