I have a join table where the original table is a numeric type and the
join table key column is a string type. Legacy decision that I am
trying to avoid having to change to minimize the risk to the scope of
work.
HasManyToMany<Attachment>(x => x.Attachments)
.Table("ObjectDocuments")
.ParentKeyColumn("ObjectId")
.ChildKeyColumn("DocumentId")
.Fetch.Select()
.LazyLoad()
.AsBag();
The owning class uses a long (numeric) type for the identifier, while
the join table uses a string type for the object identifier. How could
I map this for it to change the data type on the fly? Is there
something I can use to intercept and do the conversion?
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.