The difference between with ExecuteSqlRaw is clear, but ExecuteSqlInterpolated and ExecuteSql looks smilar, also in the docs.
Both has the same parameters and output:
public static int ExecuteSqlInterpolated (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, FormattableString sql);public static int ExecuteSql (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, FormattableString sql);
Both has the same description: "Executes the given SQL against the database and returns the number of rows affected."
None of them is marked obsolete
The only difference in the docs:
So ExecuteSql is introduced in EF Core 7.
So are these the same and should I use ExecuteSql instead of ExecuteSqlInterpolated for EF Core 7/8 as this one is newer?