I'm using Linq to SQL to generate the data model for my database. I need a temporary string property that is generated based on a number of conditions and doesn't need to be stored in the database.
So on the web portion of my code I've created the following:
Partial Public Class MyClass
Dim _extendedProperty As String
Public Property extendedProperty As String
Set(ByVal value As String)
_extendedProperty = value
On the server side of the web service I can see this field no problem. I get the table from the domain context:
Dim c As New ClassDataContext(ConfigurationManager.ConnectionStrings("Conn").ToString())
Dim l As New List(Of MyClass)
Dim pt As MyClass
For Each p In c.Table
pt = New MyClass
'copy members from database.
pt.ID = p.ID
pt.Name = p.Name
'extended property from ExtendedDBML.vb
pt.extendedproperty = ""
However on my client side when I invoke this I'm getting an error that pt.extendedproperty doesn't exist. I have found that the reference file doesn't contain any information about the property, and the REALLY frustrating part was that I had this working.
I have tried deleting and re-adding the service, full recompiles, etc. Nothing seems to be working and need some more ideas.
Any help greatly appreciated.