小编Moo*_*joo的帖子

TFS 排除目录 - .tfignore 不起作用,它是一个非常大的目录

我看过其他帖子并在 stackoverflow 上阅读它们 -如何忽略 TFS 中的文件/目录以避免它们进入中央源存储库?

然而这似乎不起作用。

我有一个名为 /FS 的根文件夹,在该目录中我有以下 .tfignore

    ################################################################################
# This .tfignore file was automatically created by Microsoft(R) Visual Studio.
#
# Local items matching filespecs in this file will not be added to version
# control. This file can be checked in to share exclusions with others.
#
# Wildcard characters are * and ?. Patterns are matched recursively unless the
# pattern is prefixed by the \ character.
#
# You can prepend a …
Run Code Online (Sandbox Code Playgroud)

tfs

6
推荐指数
1
解决办法
4085
查看次数

VB.NET LINQ 查询列表(对象)

我在使用 LINQ 查询时遇到问题 -

 Dim otherRecords As List(Of Objects) = listOf.Where(Function(x) x.ID_NUM = newID _
                                        And (x.Codes.Contains(ddlPrimaryCode.SelectedItem.Text.Trim) And Not x.Codes = Nothing)).ToList()
Run Code Online (Sandbox Code Playgroud)

错误'System.NullReferenceException' 类型的异常发生在 CI.dll 中,但未在用户代码中处理

附加信息:未将对象引用设置为对象的实例。

问题是listOf包含x.Codes.Contains的值“Nothing”。

在我有之前

 Dim otherRecords As List(Of Objects) = listOf.Where(Function(x) x.ID_NUM = newID _
                                                       And (x.Codes.Contains(ddlPrimaryCode.SelectedItem.Text.Trim)).ToList()  
Run Code Online (Sandbox Code Playgroud)

它正在崩溃。

我只需要能够返回具有匹配 ID_NUM 和代码的记录。

linq vb.net

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

linq ×1

tfs ×1

vb.net ×1