使linq查询由两个字段区分

时间:2014-04-24 09:46:18

标签: linq linq-to-entities linq-to-objects

我创建了名为Rowdetails的实体

Public Class RowDetails
    Private m_RecordId As Int64
    Private m_DbWorldId As Int64
    Private m_TableId As Int64
    Public Property RecordId As Int64
        Get
            Return m_RecordId
        End Get
        Set(p_Value As Int64)
            m_RecordId = p_Value
        End Set
    End Property
    Public Property DbWorldId As Int64
        Get
            Return m_DbWorldId
        End Get
        Set(p_Value As Int64)
            m_DbWorldId = p_Value
        End Set
    End Property
    Public Property TableId As Int64
        Get
            Return m_TableId
        End Get
        Set(p_Value As Int64)
            m_TableId = p_Value
        End Set
    End Property
End Class

我会使用linq通过具有相同的TableId和相同的RecordId来创建一个返回实体RowDetails列表的查询。 linq有可能吗?有没有人有任何建议?

0 个答案:

没有答案