No 'findby' method in strongly typed dataset

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Andrew (Andrew.L.Stephen_at_gmail.com)
Date: 03/16/05


Date: 16 Mar 2005 14:39:39 -0800

Hi - I've read several posts around this subject but not found one that
solved my problem. I have created an XSD in my VB.NET project using
drag and drop. I've created a primary key on one table - the underlying
xsd confirms that the msdata:PrimaryKey attribute of this xs:key
element is "true".

However when I generate my vb.net strongly typed dataset class, there
is no 'findby' method when the documentation and other posts here
suggest there should be.

I've tried adding the attribute msdata:unique="true" to the key
element, and also tried changeing the element name from xs:key to
xs:unique - still no 'findby' method.

Any ideas gratefully recieved .... thanks

Andrew Stephen



Relevant Pages

  • SQLXML3 XP3 - Diffgram
    ... Client and SQLXML Command objects). ... web service that posts to SQL. ... annotated XSD that SQLXML wants. ...
    (microsoft.public.sqlserver.programming)
  • Re: No findby method in strongly typed dataset
    ... What documentation are you referring to that make reference to "findby". ... > is no 'findby' method when the documentation and other posts here ...
    (microsoft.public.dotnet.framework.adonet)