Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easy Access to Typed Datasets Part 2
Message
 
To
05/05/2005 09:17:14
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01011258
Message ID:
01018335
Views:
10
>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.

Check my reply to the other message...I think that will fix this problem

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform