Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2011, 11:29 AM
Registered User
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Converting Application to VB.NET

Hi,
I am working my way through the book and have encountered some errors. I am more comfortable working in VB rather than C# so I have been converting over the code as I go. I am having issue when trying to use the ENTMenuItemSelectAll method of the data context. I get an error as follows:

Value of type 'System.Collections.Generic.List(Of ENTMenuItem)' cannot be converted to 'System.Collections.Generic.List(Of V2.PaidTimeOffDAL.ENTMenuItem)

I hope someone can offer some suggestions.

Many thanks in advance,
Declan
 
Old May 20th, 2011, 06:35 PM
Registered User
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just a quick update on the above problem. It appears to be related to the use of the IENTBaseEntity interface in the partial class ENTMenuItem in the CustomizedEntities file. By deleting this partial class altogether the code works however I would still like to know why the VB version of code didn't work compared with the c# version of the code from the book.

It may be that I am just a newbie.





Similar Threads
Thread Thread Starter Forum Replies Last Post
help, converting vb.net few lines to C# nesrine ASP.NET 2.0 Professional 1 March 5th, 2007 07:10 AM
Problem Converting C# to VB.NET in ASP.NET kwilliams ASP.NET 2.0 Basics 0 February 9th, 2007 06:22 PM
Converting C# to VB.net ninel General .NET 0 August 11th, 2006 12:36 PM
converting code from c# to VB.net drachx General .NET 0 October 20th, 2004 11:19 PM
converting DTS package from VB 6 to VB .NET petroleo Pro VB Databases 0 August 18th, 2003 05:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.