Hi,
I'm using 1.0.2005.1 Final (March 31st 2006), Self Servicing with VS.NET 2003 and SQL Server 2000. I am trying to maintain a cache of data in my application. To do this, I have a singleton class with the following method...
Public Property AllPeople() As AllPeopleTypedList
Get
If mAllPeople Is Nothing Then
mAllPeople = New AllPeopleTypedList
mAllPeople.Fill()
End If
Return mAllPeople
End Get
Set(ByVal Value As AllPeopleTypedList)
mAllPeople = Value
End Set
End Property
What I want to do is: whenver a PersonEntity is saved, I want the AllPeople List to be updated with the changes. Should I create a new AllPeopleRow and add it to the list manually every time a new PersonEntity is saved, as well as write code to update existing rows when the corresponding entity is changed? Or is there a better way to do what I am trying to do?
Any help would be greatly appreciated.