You have a Line of Business application defined in a business data catalog. You create a web part to browse the data of the LOB application. You have the following query to interact with the LOB application and the web part:
01: Dim lobSystem As LOBSystem = ApplicationInRegistry.GetLOBSystem()(“lob1”)
02: Dim lobSystemInstance As LOBSystemInstance =
lobSystem.GetLOBSystemInstance()(“lob1Instance”)
03: Dim ent1Entity As Entity = lobSystem.GetEntities()(“DBOEntities”)
04: Dim fc As FilterCollection = ent1Entity.GetFinderFilters()
05:
You need to render the results of the query and the web part.
Which code segment should you add to line 5?
A.
Dim inst1 As IEntityInstance = ent1Entity.LineSpecific(fc, lobSystemInstance)
B.
Dim inst1 As IEntityInstance = ent1Entity.FindSpecific(lobSystem, lobSystemInstance)
C.
Dim lobSystemEnumerator As IEntityInstanceEnumerator = ent1Entity.FindAssociated(New EntityInstanceCollection(), fc, lobSystemInstance)
D.
Dim lobSystemEnumerator As IEntityInstanceEnumerator = IEntity.FindFiltered(fc, lobSystemInstance)