This is a rather complex problem, and one of the main reasons I have recommended people to avoid LinqToSql for a while. Microsoft does not want people to use LinqToSql.
Your best bet is likely to start over and code reuse when you can (some of your Linq queries can automatically translate almost one on one, but even this is not necessary).
LinqToSql is a true but bad result, ORM. LinqToSql can and is used in the enterprise by people who do not require advanced ORM features.
You are unlikely to be the only person who will go this route (trying to βupgradeβ from LinqToSql to EntityFramework), but at this stage it is not clear whether there is a market need for good equipment to support this kind of migration.
Given that Microsoft has been pushing changes in data access every two years or so for more than ten years, you might need to consider NHibernate as an alternative to the Entity Framework (if you worry about Microsoft rolling up the Entity Framework, as it were done with LinqToSql).
Michael maddox
source share