Carbunql
Carbunql copied to clipboard
Using Source Generators for parsing sql at compile time
As you know, this is to improve performance
[SelectQuery( @"
select a.column_1 as col1, a.column_2 as col2
from table_a as a
left join table_b as b on a.id = b.table_a_id
where b.table_a_id is null
")]
public partial SomeSql {
}
FromClause from = SomeSql.FromClause!;
string sql = SomeSql .ToCommand().CommandText;