ich eine SQL-Abfrage, die einige Dateien auf Tabelle löschenDatabase.ExecuteSqlCommand Was bedeutet Int Return?
Ich laufe es EF mit
string comando = $" delete from MyTable where IdProduccion = '{idProduccion}'";
int res = context.Database.ExecuteSqlCommand(comando);
if (res < 0)
throw new Exception("....")
einige Male es 0 zurück, noch mal zurück 1 oder eine andere int, Trog Dokumentation Suche ich diese haben
Return Value
Type: System.Int32
The result returned by the database after executing the command.
Aber was genau bedeutet diese ganze Zahl?
Wenn ich ein anderes Ergebnis als 0 habe, tritt bei Db ein Fehler auf?