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 December 19th, 2009, 07:14 PM
Registered User
 
Join Date: Nov 2009
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Default IENTBaseEntity conversion to vb

Hello,
I am converting the objects to vb, and have a big problem on the IENTBaseEntity interface. My code is:
Public Interface IENTBaseEntity
Property InsertDate() As DateTime
Property InsertGUserAccountID() As Long
Property UpdateDate() As DateTime
Property UpdateGUserAccountID() As Long
Property Version() As System.Data.Linq.Binary
End Interface

But the problem is that when I try to implement the interface in CustomizedEntities, the result is:

Partial Public Class GAudit
Implements Framework.IENTBaseEntity

Public Property InsertDate1() As Date Implements Framework.IENTBaseEntity.InsertDate
Get

End Get
Set(ByVal value As Date)

End Set
End Property

Public Property InsertGUserAccountID1() As Long Implements Framework.IENTBaseEntity.InsertGUserAccountID
Get

End Get
Set(ByVal value As Long)

End Set
End Property

Public Property UpdateDate1() As Date Implements Framework.IENTBaseEntity.UpdateDate
Get

End Get
Set(ByVal value As Date)

End Set
End Property

Public Property UpdateGUserAccountID1() As Long Implements Framework.IENTBaseEntity.UpdateGUserAccountID
Get

End Get
Set(ByVal value As Long)

End Set
End Property

Public Property Version1() As System.Data.Linq.Binary Implements Framework.IENTBaseEntity.Version
Get

End Get
Set(ByVal value As System.Data.Linq.Binary)

End Set
End Property
End Class


The problem is that I cannot get these fields from the database, they come out empty. I suspect that is because I cannot change the names of the properties to the ones they should be, like InsertDate1 to InsertDate, because there is a conflict with the DataContext file, that also defines InsertDate property...

Any ideas?

Thanks,
Emmanouil





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter2: IENTBaseEntity Implementation Haegendoorn BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 5 September 24th, 2009 04:50 AM
File Conversion in VB.net? yuvin Visual Studio 2005 1 February 5th, 2007 03:36 PM
Help w/conversion from C# to VB.NET kwilliams VB.NET 9 October 16th, 2006 12:06 PM
conversion of vb to C# code KamalRaturi ASP.NET 2.0 Professional 6 September 13th, 2006 04:35 AM
VB to C# conversion shazia1 VS.NET 2002/2003 3 June 29th, 2005 08:12 PM





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