本文整理汇总了C#中DataRowVersion.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# DataRowVersion.ToString方法的具体用法?C# DataRowVersion.ToString怎么用?C# DataRowVersion.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataRowVersion
的用法示例。
在下文中一共展示了DataRowVersion.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetCommand
public override string GetCommand(Column column, string parameterName, System.Data.ParameterDirection parameterDirection, DataRowVersion dataRowVersion, bool isNullable)
{
OleDbType oleDbType = (OleDbType)Enum.Parse(typeof(OleDbType), column.OriginalSQLType);
return string.Format("System.Data.OleDb.OleDbParameter(\"{0}\", System.Data.OleDb.OleDbType.{1}, {2}, System.Data.ParameterDirection.{3}, {4}, (System.Byte)({5}), (System.Byte)({6}), \"{7}\", System.Data.DataRowVersion.{8}, null)",
parameterName, /*The name of the parameter*/
oleDbType.ToString(), /*One of the OleDbType values*/
column.Length.ToString(), /*The length of the parameter*/
parameterDirection.ToString(), /*One of the ParameterDirection values*/
isNullable.ToString(),
column.Precision.ToString(), /*The total number of digits to the left and right of the decimal point to which Value is resolved*/
column.Scale.ToString(), /*The total number of decimal places to which Value is resolved*/
column.Name, /*The name of the source column*/
dataRowVersion.ToString()
);
}
示例2: InvalidDataRowVersion
internal static ArgumentOutOfRangeException InvalidDataRowVersion (DataRowVersion value)
{
object [] args = new object [] { "DataRowVersion", value.ToString () } ;
return new ArgumentOutOfRangeException (GetExceptionMessage ("{0}: Invalid DataRow Version enumeration value: {1}",args));
}