开发者

NHibernate MySQL Mapping Set Column Type

In my MySQL database, I have the following column type.

Field        |    Type                                        |  Null |
----------------------------------
Column_priv  |  set('Select','Insert','Update','References')  |   No  |

And I canno开发者_运维百科t figure out what to map this to.

Can anyone tell me how I can map this to something?


Have a string property, if the need be have a custom class represnting each value inside the set and each time the property nhibernate uses to set the value convert it into the custom class using its constructor for the conversion.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜