diff Source/Data/ScalarSourceType.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/Data/ScalarSourceType.cs	Thu Mar 27 21:46:09 2014 +0400
@@ -0,0 +1,32 @@
+namespace BLToolkit.Data
+{
+	/// <summary>
+	/// Defines the method how a scalar value is returned from the server.
+	/// </summary>
+	public enum ScalarSourceType
+	{
+		/// <summary>
+		/// A call to <see cref="DbManager"/>.<see cref="DbManager.ExecuteReader()"/>
+		/// then <see cref="System.Data.IDataReader"/>.<see cref="System.Data.IDataReader.GetValue(int)"/>.
+		/// </summary>
+		DataReader,
+
+		/// <summary>
+		/// A call to <see cref="DbManager"/>.<see cref="DbManager.ExecuteNonQuery()"/>.
+		/// An output parameter <see cref="System.Data.IDbDataParameter.Value"/> is used.
+		/// </summary>
+		OutputParameter,
+
+		/// <summary>
+		/// A call to <see cref="DbManager"/>.<see cref="DbManager.ExecuteNonQuery()"/>.
+		/// The return parameter <see cref="System.Data.IDbDataParameter.Value"/> is used.
+		/// </summary>
+		ReturnValue,
+
+		/// <summary>
+		/// Same as <see cref="DbManager"/>.<see cref="DbManager.ExecuteNonQuery()"/>.
+		/// Useful for an abstract <see cref="BLToolkit.DataAccess.DataAccessor"/>.
+		/// </summary>
+		AffectedRows,
+	}
+}