erikojebo/WeenyMapper — Issue #2: Generate select clause of generated SQL query to include only properties from target type
Author: erikojebo
Created: 2011-12-27 17:38:35+00:00
State: open

The SQL generated for select queries currently uses a "select * ..." query. This should be modified to use only the properties of the target type.

Example:

// Given a User class with properties Id, Username, Password
var user = repo.Find.UserById(123).Execute();

// would generate the SQL:
select [Id], [Username], [Password] from [User] where [Id] = @Id