积极答复者
sqltolinq,空值的判断

问题
答案
-
Int以及任何值类型永远不可能等于null,因此你值得判断一个具体的数值,譬如:
pt.PropertyID!=0
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report
- 已编辑 ThankfulHeart 2013年6月16日 4:13
- 已标记为答案 linjiangxian11 2013年6月17日 3:20
全部回复
-
Int以及任何值类型永远不可能等于null,因此你值得判断一个具体的数值,譬如:
pt.PropertyID!=0
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report
- 已编辑 ThankfulHeart 2013年6月16日 4:13
- 已标记为答案 linjiangxian11 2013年6月17日 3:20
-
自增主键永远不可能为空。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report