none
WCF Data Services RRS feed

  • General discussion

  • Hello Everyone,

    I would like to know more about the WCF Data Service with reference to entity framework 3.5 and entity framework 4.0.

    I would like know your opinions and suggestions how WCF Data Service can designed and implemented to achieve the technical objective.

    Your suggestion is always appreciated.

    ProgrammerLive - PL

     

     


    Helping People To Solve Technical Problems
    Tuesday, May 25, 2010 2:30 PM

All replies

  • WCF Data Services helps in exposing Relational non relational Data as REST services (URL based access, hierarchical drill down functionality, http based, etc..)

    Entity Framework (EF) is more of an Object Relational (OR) framework and WCF Data services can expose Data with Entity Framework as underlying framework.

    EF alone cannot be used to expose REST Services. WCF Data services provides http runtime on top of EF to expose data as services.

    Using EF with respective database providers you can connect to respective databases like Oracle, Sybase, DB2, SQL Server, etc...

    WCF Data Services works in business tier although it exposes data as WCF services.

    Where as EF is Data acess tier as it helps you access Database.

    If your objective is to expose relational data as REST Services use WCF REST Services, you can additionally have EF to provide OR mapping, else you can use WCF Data Services on top of LINQTOSQL.

    If your objective is to build Enterprise wide data access layer connecting to SQL Server, ORACLE, DB2, etc.you can create multiple respective EDMs and expose data through EF.  Also for mult -tier applications having strong domain model (complex presentation layer entities representing domain concepts) needs mapping relational data to domain data. This can be easily achieved using EF. It has a support for Plain Old CLR objects.

    hope this helps.

    Regards

    Suds

    Wednesday, May 26, 2010 5:10 AM