Type expected error in dbml file

51 views
Skip to first unread message

Sid Price

unread,
Jan 11, 2011, 11:10:30 AM1/11/11
to dbl...@googlegroups.com
I have a DBML file and associated VB.Net classes generated by DbLinq that
does not compile. I have problems in two areas and I don't seem to be able
to figure out what reference I may be missing from my solution.

The first error is a "Missing Type" error from the 'GetType' statement:

<System.Data.Linq.Mapping.DatabaseAttribute(Name:="dcinema"), _

Provider(GetType(MySQL))> _ ß-------- Error here says "Type expected"

Partial Public Class DCinema

Inherits DbLinq.Data.Linq.DataContext

Private Shared mappingSource As System.Data.Linq.Mapping.MappingSource =
New AttributeMappingSource

Then I have an issue with the return type of each table property in the
class. The error I get is "Value of type 'DbLinq.Data.Linq.Table(Of
WindowsApplication1.TBlAudioResults)' cannot be converted to
'System.Data.Linq.Table(Of WindowsApplication1.TBlAudioResults)'."

Public ReadOnly Property TBlAudioResults() As
System.Data.Linq.Table(Of TBlAudioResults)

Get

Return Me.GetTable(Of TBlAudioResults)

End Get

End Property

Once again, any help would be appreciated.

Sid.

Avian Ambassadors - Flights of Education

www.AvianAmbassadors.com

The Bird Training Blog <http://avianambassadors.com/BirdTraining/>

Behavior and Training Seminars <http://www.behaviorandtraining.com/>

winmail.dat

Sid Price

unread,
Jan 11, 2011, 1:03:25 PM1/11/11
to dbl...@googlegroups.com
I went back to having DbMetal generate VB.Net classes and I now have a set
of classes for access of my DB. Not sure why the DBML file approach didn't
work but hopefully I am now able to make progress.

Sid.

Avian Ambassadors - Flights of Education

www.AvianAmbassadors.com

<http://avianambassadors.com/BirdTraining/> The Bird Training Blog

<http://www.behaviorandtraining.com/> Behavior and Training Seminars

winmail.dat
Reply all
Reply to author
Forward
0 new messages