Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COHi Stingyjack....thanks for the reply. The function is just merely an exercise in trying to figure out what to class and what not to, but I do understand and appreciate the point. I'm still getting that Specified Cast is Not Valid error however. I'm really puzzled and looked all through my data context definitions to see if something is strange there. Is there a way to simply check if the single query works without having to cast it as a tblPolicy? In other words can I perform a LINQ query and throw it into just any ol object like Response.Write(newpolobject(0).ToString() or something?
      singulars
    2. COWell... I am trying to say there is no need to pass in a function [Function(p)] for this simple statement. GetJacketByPolicyID returns a tblPolicy, just as the linq query does. I still dont get why you are trying to cast it to something different. Also its worth noting that the VB syntax for linq is a bit different than C# and VB doesn't support (at least without heinous workarounds) some of it completely (like functions) yet.
      singulars
    3. COThanks so much StingyJack, yeah I don't like VB.net much and prefer C# any day of the week, but my client is new to .net and wanted to have a base language that they were familiar with, hence the vb.net...lol. Anyway, I did get this to work. I had to delete and let .net rebuild the DataContexts and it worked like a charm. Thanks again.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload