cool

2010/9/13 kor <[email protected]>

> for the convertions ipaddress <---> string
> uses ipaddress .ToString()  and IPAddress.Parse
>


private string address;

public IPAddress Address{
  get{
        return IPAddress.Parse(address);
  }
  set{ address = value.ToString(); }
}

and the mapping:

<property name ="Address" access="field.camelcase" />


With this approach i can even query by hql:

from SomEntity se where se.IpAddress like '127%'


Why do i need an iusertype? folks

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