I want to be able to use the LINQ statement.
var User = from u in Users where u.UserID == 7 select u.UserName;
And let it generate SQL like this.
SELECT UserName FROM Users WHERE Users.UserID = 7
I know LINQ TO SQL does this, but I do not want all the added xml mapping and the generated code. Obviously, this is possible, since LINQ TO SQL does this, but how to do it?
Update
Another reason I don't want to use LINQ to SQL is because I want to use it for PostgreSQL.
source share