Sequel icon indicating copy to clipboard operation
Sequel copied to clipboard

Mapper V2 Request

Open Omzig opened this issue 6 years ago • 1 comments

It would be really awesome if the mapper was upgraded to a "Fluent" version. E.G.

var sqlMapper = new SqlMapper<MockEntity>();

var sqlString = sqlMapper.Select(rec => rec.Id) .From("MockEntity") .Where(rec => rec.Id = "1") .ToString()

Or somehow merge it into a LINQ type statement to form the SQL string. Or maybe create an SQLBuilder that accepts a type.

var sqlQuery = new SqlBuilder<MockEntity>() .Select(rec => rec.Id) .From("MockEntity") .Where(rec => rec.Id = "1");

I really like how LINQ works, it is a shame that we cannot use that same concept here.

Omzig avatar Feb 12 '19 15:02 Omzig