Die Methode "Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase.ExecuteScalar" in C# wird verwendet, um eine einzelne skalare (einfache) Wertabfrage auf einer Microsoft SQL Server-Datenbank auszuführen. Diese Methode gibt den ersten Spaltenwert der ersten Zeile des Abfrageergebnisses zurück. Dies kann zum Abrufen einer einzelnen aggregierten Funktion, wie z.B. "COUNT", "MAX" oder "SUM", verwendet werden.
C# (CSharp) Microsoft.Practices.EnterpriseLibrary.Data.Sql SqlDatabase.ExecuteScalar - 30 Beispiele gefunden. Dies sind die am besten bewerteten C# (CSharp) Beispiele für die Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase.ExecuteScalar, die aus Open Source-Projekten extrahiert wurden. Sie können Beispiele bewerten, um die Qualität der Beispiele zu verbessern.