locked
LINQ to Entities with an XML data source? RRS feed

  • Question

  • What I'm hoping is to be able to use the designer to combine entities from different underlying sources (SQL, XML etc.) and address them together with LINQ to Entities.  Is this possible?

    The same question was aked earlier but would like to know if there is any feature added in the EF4 for this problem.

    Below is the link to earlier question:

    http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/51bf7fe0-1e12-4a72-ad68-9b747d9fd484

    nilesh
    Wednesday, February 2, 2011 11:46 AM

Answers

  • On 2/2/2011 6:46 AM, nil5286 wrote:
    > What I'm hoping is to be able to use the designer to combine entities
    > from different underlying sources (SQL, XML etc.) and address them
    > together with LINQ to Entities. Is this possible?
    >
     
    The best you could hope for is a framework you put together that is
    Entity Framework like. A business model framework that has entities that
    address the underlying datasource. This is being done at a company I
    work at where the entities addresses the datasource on SQL Server and it
    addresses a DB2 database that's on an AS400 mainframe. None of it's
    using the ADO.NET EF, but works like an ADO.NET EF.
     
    It works with the Entity StateManger, IEntityKey, EntityKey,
    ReportPopertyChanging, and ReportPropetyChanged and EntityCollection.
    You don't need the ADO.Net EF to work with entities that you derive from
    a business model framework. You should be able to create an entity that
    addresses XML too.
     
    • Marked as answer by Jackie-Sun Tuesday, February 15, 2011 9:16 AM
    Wednesday, February 2, 2011 1:32 PM