[nhusers] Building a List<string> through <component>

9 views
Skip to first unread message

Quintin Par

unread,
Apr 26, 2010, 12:42:01 PM4/26/10
to nhu...@googlegroups.com
If I have a field in the db which stores a set of comma separated strings (says tags), how can I instruct Nhibernate(Fluent) to pick it up at List<string>()
e.g. 


Public IList<string> Tags {get; set;}


Db field values:


Mvc, .net, FNH

-Quintin

P.S. Cross postes at SO

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.

Oskar Berggren

unread,
Apr 26, 2010, 3:01:03 PM4/26/10
to nhu...@googlegroups.com
One method:
private string NonRelationalTags { get { return joinlist(Tags); } set
{Tags = parselist(value);}} // map this with NH using normal
<property> or equivalent.

/Oskar



2010/4/26 Quintin Par <quint...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages