In C# code I have a variable Guid? name.But,how to initialize this parameter to null,since I cannot assign null for a guid type
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Set the parameter value to DBNull.Value
.
回答2:
param = New SqlParameter("@GUID_ID", SqlDbType.UniqueIdentifier, 16)
param.Value = DBNull.Value