如何将DefaultValue属性设置为DBNull.Value [英] How do I set the DefaultValue attribute to be DBNull.Value

查看:538
本文介绍了如何将DefaultValue属性设置为DBNull.Value的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我想在属性声明中使用< DefaulValue()> 属性,表示此值是 DBNull.Value .我该怎么办?

I want to use the <DefaulValue()> attribute over a property declaration, expressing that this value is DBNull.Value. How can I do that?

非常感谢

推荐答案

我想您已经尝试这样做了?  错误消息是什么?  属性数据类型是什么?
I suppose that you tried to do that already?  What's the error message?  What is the property data type?


这篇关于如何将DefaultValue属性设置为DBNull.Value的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆