Hi all. I am a fairly new nhibernate user, and I have a question about
a particular, oddball mapping I would like to perform. I have an
IConfiguration class that holds on to the configurable parts of the
system, e.g. some dependent server urls, min/max values, etc. I would
like to map to/from a table that is essentially name->value pairs,
e.g.

public class Config : IConfiguration
{
   public string ServerUri { get;set;}
   public bool IsFoo {get; set;]
}

mapped to

table Configuration
(
  PropertyName varchar(...),
  PropertyValue varchar(...)
)

with rows like "ServerUri"=>"http://foo";, "IsFoo"=>,"true"

Is there any out-of-the-box way to do something like this, or would I
need to implement, e.g., a custom persister?

Best Regards,
Jef | Improving

-- 
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.

Reply via email to