开发者

NHibernate MySQL Mapping Set Column Type

开发者 https://www.devze.com 2022-12-27 11:18 出处:网络
In my MySQL database, I have the following column type. Field|Type|Null | ----------------------------------

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

精彩评论

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