Entity Framework and consuming a WCF service
        Posted  
        
            by nakori
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by nakori
        
        
        
        Published on 2010-05-23T00:20:11Z
        Indexed on 
            2010/05/23
            0:31 UTC
        
        
        Read the original article
        Hit count: 736
        
wcf
|entity-framework
I'm getting data where the database is hidden behind a WCF service. Is it possible to use Entity Framework in a scenario where I have custom objects coming from a web service? (No access to the external database, and no current plans for insert/update/delete logic)
Starting with an empty EF model and adding an entity I get this error on compile: No mapping specified for instances of the EntitySet and AssociationSet in the EntityContainer ..
Is it possible to make an entity this way, and fill it with data received from an object? (In this case a WCF, but could also be a predefined model class/xml data)
If the web service retured a Customer object I could do something like this with a dataset: Make an unbound table and do a loop through the customer properties adding them to a temp row, add it with tbl_Customer.Addtbl_CustomerRow(customerRow) to get my view filled.
thanks, nakori
© Stack Overflow or respective owner