Vikash p
asked on
Converting from linq.iqurable
I have a class
public class Document
{
public int Doc_ID { get; set; }
public string personid { get; set; }
public string DocType { get; set; }
public byte[] uploaded_Document { get; set; }
public string Document_Name { get; set; }
}
Document UserDoc = new Document();
UserDoc= from uDoc in db.userDoc where uDoc.personid == "X123456" select uDoc;
how to solve this casting problem ?
public class Document
{
public int Doc_ID { get; set; }
public string personid { get; set; }
public string DocType { get; set; }
public byte[] uploaded_Document { get; set; }
public string Document_Name { get; set; }
}
Document UserDoc = new Document();
UserDoc= from uDoc in db.userDoc where uDoc.personid == "X123456" select uDoc;
how to solve this casting problem ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.