none
which is the stable version of Entity framework to work with WCF Service ? RRS feed

  • Question

  • which is the stable version of Entity framework to work with WCF Service ? 

    My senior developers are suggesting me to use Entity framework 4.0 because its the stable version and version 6.0 is not stable... Is it right ?

    How the Entity framework differ from Enterprise library.

    Enterprise library gives dataaccess, exception logging, caching..etc...

    Will the Entity framework gives features given by the Enterprise libraries...


    ilikemicrosoft


    • Edited by surendiran Thursday, May 8, 2014 5:26 PM
    Thursday, May 8, 2014 5:23 PM

Answers

  • which is the stable version of Entity framework to work with WCF Service ? 

    Any one of the EF versions from EF 3.5 to version 4.5 with 4.5 being the latest are stable. EF has nothing to do with a WCF service - nothing, other than and EF entity object using the Database first approach in an implicit datacontract to WCF, which means that the EF entity/object can pass through the WCF service and client as is. And still most developers don't send the EF entities through  the WCF if the DAL using EF is sitting behind the WCF services. They send Data Transfer Objects DTO(s).

    http://en.wikipedia.org/wiki/Data_transfer_object

    http://visualstudiogallery.msdn.microsoft.com/655aa6d4-4461-42ea-aeec-64cdb1313de7

    Entity-2-DTO makes DTO(s) derived from the EF model that are implicit datacontracts to WCF.

    You can also make your own DTO(s) that can be implicit datacontracts with WCF. Enity-2-DTO doesn't has of yet work with VS2013 an VS2013 uses EF 6.

    My senior developers are suggesting me to use Entity framework 4.0 because its the stable version and version 6.0 is not stable... Is it right ?

    No. it is not right and your senior developers really don't know what they are talking abut.

    How the Entity framework differ from Enterprise library.

    Entilb and the Entity Framework are two different things altogether.

    EF is an ORM solution.

    Enterprise library gives dataaccess, exception logging, caching..etc...

    Yeah it does, but Entlib is not an ORM solution.

    http://en.wikipedia.org/wiki/Object-relational_mapping

    http://www.entityframeworktutorial.net/what-is-entityframework.aspx

    Will the Entity framework gives features given by the Enterprise libraries...

    Entib and the Entity Framework are two different technologies. Entlib is a library and EF is a ORM solution.

    I suggest that you do the simple EF tutorial. The link gives you the same tutorial in VB and C#, but the C# version lacks the form pictures you need to develop the forms. The VB version has the form pictures the C# version has lost.

    http://www.vbforums.com/showthread.php?540421-Tutorial-An-Introduction-to-the-ADO-NET-Entity-Framework
    Thursday, May 8, 2014 7:35 PM