use*_*180 -1 c# linq entity-framework
Model.GetData.Where(p => p.Value != null).ToList();
Run Code Online (Sandbox Code Playgroud)
我的数据库中有值,如下所示,
我的价值栏:
Null
Null
5
16
ExampleValue1
ExampleValue2
Run Code Online (Sandbox Code Playgroud)
p.value是字符串
我只想看"ExampleValue1"和"ExampleValue2".我怎样才能获得数据不为空而不是数字?
也许:
var BillingNumbers = Model.GetData
.Where(p => p.Value != null && SqlFunctions.IsNumeric(p.Value) == 0);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1966 次 |
| 最近记录: |