3 Comments

  1. Damon,

    Thanks for an interesting post.

    What I don’t understand is “How are you going to interface to your domain model”?

    I’m under the impression that the BDC will only work with ADO.NET providers or WebServices.

    Are you writing an ADO.NET provider that will talk to your domain model (i doubt it) or is this work “just” to transform the existing mappings into BDC mappings and then let the BDC interface directly to your database?

    I’m currently looking at the BDC and I can’t find any documentation that let’s me write a “custom provider” so that I can create an Adaptor between my domain model and the BDC and still utilize the BDC Web Parts.

    Do you know if there are such an API available?

    Thanks again
    /Jonas

  2. The solution is a bit of a hybrid of what you describe but essentially for the first version it indeed transforms Domain Mappings to BDC mappings and then relies (in a transparent way) on the existing ADO.NET provider(s).

    That being said. I’m OK with it as even NHibernate uses ADO.NET providers behind the scenes. As long as I don’t have to ask anyone to ‘step out of domain thinking’ for this, it’s ok.

    The transform SHOULD be easy. Unfortunately as stated there are limitations on actual design expectations the BDC places on you for it to work. That is where the hybrid part comes in and you nailed it by using the word Adapter.

    Each environment will be different, but as long as:

    1) The BDC is happy with the metadata and
    2) It can resolve data population through some ADO.NET provider (the web services API is a lost cause I believe for now) and
    3) Where constraints are not present some facade and/or adapter can be used to satisfy the BDC’s requirements

    then all is ‘good enough’… Not perfect but what is (grin)?

    Damon

  3. Damon,

    We have just released a FREE framework named MashPoint.

    Take a look here:

    http://community.bamboosolutions.com/blogs/mashpoint/

    We emulate the BDC and we also allow you to import ANY .NET type. You can see a sample of a simple file system “provider”. So it’s really easy to write custom providers.

    We are working on allowing you to bring in your domain models based on NHibernate or Entity Framework or some other O/R mapper.

    The biggest challenge right now is the tooling. But If you are working on a tool please look at MashPoint too :)

    You will be able to influence the direction it takes by joining Bamboo Nation and our labs.

    Thanks
    /Jonas


Post a Comment