nreco / data

Fast DB-independent DAL for .NET Core: abstract queries, SQL commands builder, schema-less data access, POCO mapping (micro-ORM).
https://www.nrecosite.com/dalc_net.aspx
MIT License
183 stars 39 forks source link

Add DbDataAdapter.Select that accepts FormattableString #41

Closed VitaliyMF closed 7 years ago

VitaliyMF commented 7 years ago

Lets add DbDataAdapter.Select(FormattableString) overload to support interpolated string like in EF Core 2.0; implementation should convert specified parameters to DB command parameters to avoid potential sql injection when interpolated C# strings are used.

VitaliyMF commented 7 years ago

Done: added special RawSqlString like in EF Core to handle FormattableString overload correctly.