Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy Access to Typed Datasets Part 2
Message
De
05/05/2005 09:17:14
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Easy Access to Typed Datasets Part 2
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01011258
Message ID:
01011258
Vues:
55
After I created a wrapper method in my Bus Obj for GetCurrentDataSet that casts the generic DataSet to the strongly typed DataSets (per Dev Guide), shouldn't this allow me to not have to perform casts in my application code:
Me.VisitorDataset = _
Me.oVisitor.GetVisitorByVisitorId(visitorIdSelected)
rather than
Me.VisitorDataset = _
CType(Me.oVisitor.GetVisitorByVisitorId(visitorIdSelected),VisitorDataSet)

After I make the changes to the Bus Obj and code per the first example, I get Option Strict On disallows implicit conversions from 'System.Data.DataSet' to 'XXX.MyApplication.Business.VisitorDataset' in my WinForm code.

Am I missing something?
THANKS
Joe Salvatore, Programmer/Analyst - The Stellar Group
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform