CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

CSLA.NET 3.5 using LINQ to SQL vs. LINQ to Entities?

Last post 05-19-2008, 4:38 PM by ktran. 2 replies.
Sort Posts: Previous Next
  •  05-14-2008, 4:42 PM 23582

    CSLA.NET 3.5 using LINQ to SQL vs. LINQ to Entities?

    If I am starting with the newest version of the CSLA.NET 3.5.1 framework and using a fresh normalized SQL 2008 Database, what do you reccomend using within the framework as far as going with LINQ to SQL classes or should I use LINQ to Entities classes in the DalLinq assembly?

    Are there any real performance differences in using one or the other?

    I created a EDM in the DalLinq project assembly and tried to use the same implemenation that is being used in the ProjectTracker.Library using the Csla.Data.DataContext and I got an error telling me that I couldn't use it for SqlEntityClient??

    Does the framework support Linq to Entities?

    Thanks,

    Kent

  •  05-16-2008, 8:48 PM 23632 in reply to 23582

    Re: CSLA.NET 3.5 using LINQ to SQL vs. LINQ to Entities?

    You really don't want LINQ to Entities - just the Entity Framework. You can use EF much the same way as I use L2S in ProjectTracker.

    I haven't incorporated an EntityContextManager into Csla.Data yet because EF isn't released. The EF data context object isn't the same as the L2S data context, so a different manager class will be required.

    If you want to use EF now you can copy the ContextManager class and modify it to work with an EF context instead - and when EF is released I'll put something along that line into CSLA.


    Rocky
  •  05-19-2008, 4:38 PM 23673 in reply to 23632

    Re: CSLA.NET 3.5 using LINQ to SQL vs. LINQ to Entities?

    Great, thanks for the input and insight on that, I'll keep inline with Linq to Sql and using the ContextManger in CSLA for now.

    Kent

View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems