EDN Admin
Well-known member
Hi All,
<span style="white-spacere mappingDoc = XDocument.Load(System.Configuration.ConfigurationManager.AppSettings("path"))
<span style="white-spacere Dim mapXmlRead
<span style="white-spacere Dim genrcOrClintspecfc = (From c In mappingDoc.Descendants("Entity") Where c.Attribute("Source").Value = publishEntity
Select New With
{
.EntityTarget = c.Attributes("TargetInsUpd")
})
If genrcOrClintspecfc IsNot Nothing AndAlso genrcOrClintspecfc.Count > 1 Then
mapXmlRead = (From c In mappingDoc.Descendants("Entity") Where c.Attribute("Source").Value = publishEntity AndAlso c.Attribute("Mode").Value = "ClientSpecific"
<span style="white-spacere Select New With
<span style="white-spacere {
<span style="white-spacere .Property = c.Elements("Properties").Elements("Property")
})
<span style="white-spacere Else
mapXmlRead = (From c In mappingDoc.Descendants("Entity") Where c.Attribute("Source").Value = publishEntity
<span style="white-spacere Select New With
<span style="white-spacere {
.Property = c.Elements("Properties").Elements("Property")
})
End If
Dim PrimaryKeyNames = From keyItem In <span style="text-decoration:underline
mapXmlRead(0).Property Where keyItem.Attribute("Source").Value.ToString.Trim = "KnowledgeItemId"
ERROR is:Expression of type Object is not queryable. Make sure you are not missing an assembly reference and/or namespace import for the LINQ provider.
How can I solve this?
Regards,
JN
<br/>
View the full article
<span style="white-spacere mappingDoc = XDocument.Load(System.Configuration.ConfigurationManager.AppSettings("path"))
<span style="white-spacere Dim mapXmlRead
<span style="white-spacere Dim genrcOrClintspecfc = (From c In mappingDoc.Descendants("Entity") Where c.Attribute("Source").Value = publishEntity
Select New With
{
.EntityTarget = c.Attributes("TargetInsUpd")
})
If genrcOrClintspecfc IsNot Nothing AndAlso genrcOrClintspecfc.Count > 1 Then
mapXmlRead = (From c In mappingDoc.Descendants("Entity") Where c.Attribute("Source").Value = publishEntity AndAlso c.Attribute("Mode").Value = "ClientSpecific"
<span style="white-spacere Select New With
<span style="white-spacere {
<span style="white-spacere .Property = c.Elements("Properties").Elements("Property")
})
<span style="white-spacere Else
mapXmlRead = (From c In mappingDoc.Descendants("Entity") Where c.Attribute("Source").Value = publishEntity
<span style="white-spacere Select New With
<span style="white-spacere {
.Property = c.Elements("Properties").Elements("Property")
})
End If
Dim PrimaryKeyNames = From keyItem In <span style="text-decoration:underline
mapXmlRead(0).Property Where keyItem.Attribute("Source").Value.ToString.Trim = "KnowledgeItemId"
ERROR is:Expression of type Object is not queryable. Make sure you are not missing an assembly reference and/or namespace import for the LINQ provider.
How can I solve this?
Regards,
JN
<br/>
View the full article