Using "WCF Application" with Entity Framework is it possible??? RRS feed

  • Question

  • Is it possible to use WCF Application with entity framework. 

    My problem is when i write db.sometable. there is no firstordefault or tolist etc.

    What I did was I created new WCF Application Created new folder App_Code

    In it I added EF Model with the tables i need and created new class called DB.

    I made the class static public as the methods so when i write:

    using (var context = new SomeEntities1()) 
            context.sometable. => no code completion for firstordefault/tolist???why

    Please help :)


    • Edited by Simpa151 Wednesday, May 22, 2013 8:34 AM
    Wednesday, May 22, 2013 8:33 AM


All replies