Hi David,
i'll try to be a bit clearer. It's possible that the way i'm trying to accomplish this is totally misunderstood on my part...
daelmo wrote:
A. When the custom classes came back from the client, construct entity classes (or typedList rows) based on the custom data, then add them to the list (typeList or entitycollection).
The client app sits and monitors the servers for new messages via a web service. The web service pulls the data from the database in a TypedList. The data is then put into a List<myClass> of custom classes and sent to the client for display purposes. No editing takes place on the client, it is purely for monitoring.
When the data arrives at the client app I want to put that data from my list of custom class into a 'Collection' so that i can apply a couple of EntityViews to that collection for displaying within listview controls on the client. Any new data in subsequent calls would then be added (AddRange(T)) to the existing 'collection' and the listvews would be updated.
Because the data is a combination of a number of tables (TypedList), i need the 'collection' to be a typed list, or some other solution, so that the entity view will pick up any new records as they are pulled from the server via the web service.
The problem is, i can't create a TypedList row as the compiler complains about protected internal constructor so 'myTypedListRow newRow = new myTypedListRow()' fails.
It appears that i can only add to proper Collections, or am i doing something wrong? I've been using SelfService up until now, so it is possible that i am not up to speed with the whole Adapter factory way of doing things.
daelmo wrote:
B. Construct a DB view and then map it to a entity in LLBLGen Designer.
I tried creating a view in the database and mapping to a TypedView in LLBLGen and doing the same thing, myTypedViewRow newRow = new myTypedViewRow(), but i get the same protected internal constructor error.
Both TypedList and TypedView have no Add() or AddRange() method either, so it would seem what i am trying to do is not possible.
How would one go about doing what i am trying to do, except for making a psuedo-table on the database and generating a proper 'Collection' to fool LLBLGen into thinking that there is actually a collection like that?
Hope that is a bit clearer. Thanks for the help.
Steven