Hello,
I want all data to be fetched at once and place it on the server with additional BL which is MarshalByRefObject.
From these data, i want selected data to be displayed and bind it to GUI controls.
In the UI, if I wanted to do conditional filtering for a comb-box the easiest way to do that is to refetch the collection from the DB with the new filter.
In my case, i am not updating database on every change so refetch data would be useless.
Is there anyother way to display filtered data from EntiryCollection which is part of another Entity (FK - PK) ?
---now here is what i have tried ----
I tried assigning updated entity to the one in BL. This trick works for local object but if i acquire BL object from remote server, it just doesn't update. (Even don't throw errors!!!)
When i try removing an entity form EntityCollection (PK - FK), i get following error
System.InvalidCastException: Specified cast is not valid.
at SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2.RemoveAt(Int32 index)
at BL.Estimate.saveProducts(ArrayList arrProducts) in c:\4estimate\bl\estimate.cs:line 98
Is there any way to use Entity/EntityCollection for ....
- Remoting (MarshalByRefObject)/ singlton
- With each entity having multiple EntityCollections (PK/FK)
- Bind/Display customized filtered EntityCollection
BTW, i use Adapter with Firebird database.
Any idea would be highly appreciated.
Thanks,
Kapil