The VfpDataSourceItem would be best if you just need pull data from the VFP database, right? |
Correct.
Does FillByStoredProcedure mean you make a call to a prg that is visible from the VFP database and and data is brought into the business object?
No. This is when you would call a method that is within the DBC stored procedures. A prg is not going to be accessible in this manner unless called through a VFP stored procedure.
I need to see code for FillByStoredProcedure and ExecuteStoredProcedure() to understand better.
There is really not much to show, bottom line is a procedure must exist within the DBC, for example let's assume that we have a procedure in the DBC named MyProcedure. You would call it like this:
MyBO.FillByStoredProcedure("MyProcedure")
If it required parms, then you would pass the parms in the second parameter of the FillByStoredProcedure method or create a OleDbCommand with the parameters already set when called.
"we generally use UDP across the loopback if we need cross-process communication".
UDP is a networking protocol that allows a port to be occupied and listened on. When we need to make two disparate EXEs or applications talk between each other, i.e. a VFP app talking to a .NET app, we create a UDP session within each application that can send and listen which allows us to communicate between the two apps. You can reference the advanced sample that comes with the framework that shows how to run a VFP application within a .NET environment.
What do you think?
You do not want to do this....talking to a database will be slow, cumbersome, and open up a huge potential for failure at run-time. This is why we use the UDP method.