问题描述
在CLR代码中,我从数据集中检索数据行,并在特定条件下需要清除数据字段. In my CLR code, I retrieve a data row from a dataset, and under specific conditions, I need to clear out a data field. 如果 ( 全局变量 .GetInt(dRow [ " EQStatCode" ].ToString())== 5) { if (globals.GetInt(dRow["EQStatCode"].ToString()) == 5) { dRow [ "InstallDate" ] = [我可以在这里做什么呢!!!] dRow [ "InstallDate"] = [ WHAT CAN I PUT HERE TO MAKE IT WORK!!!!] dRow[ 用法" ] = 0; dRow [ "Usage"] = 0; dRow[ "EQStatus" ] = 替换" ; } "EQStatus"]= "Replacement"; } 这篇关于清除数据行中的日期字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
例如:
for example:
dRow [ "MTBF"; ] = 0;
dRow["MTBF"] = 0;
我已经尝试过:null,dbnull,sqldatetime.Null,尝试将"12/31/1899"转换为约会等等,我对这个简单"的问题很认真.
I have tried : null, dbnull, sqldatetime.Null, Tried converting "12/31/1899" to a date, etc, and I am seriously stucik on this 'simple' question.推荐答案