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 From: [email protected] [mailto:[email protected]] On Behalf Of Sid Price Sent: Tuesday, January 11, 2011 9:11 AM To: [email protected] Subject: [dblinq] Type expected error in dbml file 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/> -- You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/dblinq?hl=en.
<<attachment: winmail.dat>>
