How to move from Linq 2 SQL to Linq 2 Entities?

To show the created SQL commands for debugging in EF

using System.Data.Objects;
...
var sqlQuery = query as ObjectQuery<T>;
var sqlTrace = sqlQuery.ToTraceString();

AFAIK there are no commands to create DB’s or do any sort of DDL work. This is design limitation of the “Entity SQL” language

The EDMX design surface will map your current database schema, not the other way around

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)