[fdo-users] Write FDO Provider

Jackie Ng jumpinjackie at gmail.com
Mon Dec 14 05:51:19 EST 2009


I have not written a FDO provider before, but I can tell you what constitutes
a FDO provider (at the source code level):

- You need to implement a class that derives from FdoIConnection, this is
your main interface and everything else in your provider flows on from this
main interface.
- You need to implement FdoIConnectionInfo which describes this connection
and how to connect.
- You need to implement all the capability interfaces that say what this
provider can and can't do.
- You need to define an externally accessible entry point that returns a new
instance of your class. This entry point needs to be exported from your dll
so the provider registry can get to it.
- You need to implement these commands for a minimally functioning provider,
the commands you implement should match what your capability interfaces are
saying:
   - FdoISelect
   - FdoIDescribeSchema
- You should be familiar with FDO memory management (smart pointers,
reference counting, etc)

Unfortunately, you have to do all of this in C++, there are some tools that
can assist. 

1) There is a FDO provider template under
Utilities\Common\FDOProviderTemplate unfortunately this hasn't been updated
for quite a while now. 

2) There is a helper library for providers in Utilities\Common that has a
bunch of classes commonly used by providers.

It also doesn't hurt to go through the source code of other providers.
You'll notice repeatable patterns that can be applied to your own provider.

Hope that helps.

- Jackie


Davidow wrote:
> 
> How to develop a new custom FDO provider for a specific data source? Can I
> get some Getting started samples or walk-through exercises for writing a
> custom FDO provider.
> 
> I will write a new custom FDO provider for DFX Format.
> Are there any .Net template wizards for writing a new custom FDO provider?
> I am in need of a detailed explanation about the development process. 
> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Write-FDO-Provider-tp4163365p4163447.html
Sent from the FDO Users mailing list archive at Nabble.com.


More information about the fdo-users mailing list