本文整理汇总了C#中System.Data.SqlTypes.SqlInt32.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# SqlInt32.ToString方法的具体用法?C# SqlInt32.ToString怎么用?C# SqlInt32.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.SqlTypes.SqlInt32
的用法示例。
在下文中一共展示了SqlInt32.ToString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: validateResultSetNumber
private void validateResultSetNumber(SqlInt32 resultsetNo)
{
if (resultsetNo < 0 || resultsetNo.IsNull)
{
throw new InvalidResultSetException("ResultSet index begins at 1. ResultSet index [" + resultsetNo.ToString() + "] is invalid.");
}
}
示例2: sendSelectedResultSetToSqlContext
public void sendSelectedResultSetToSqlContext(SqlInt32 resultsetNo, SqlString command)
{
validateResultSetNumber(resultsetNo);
SqlDataReader dataReader = testDatabaseFacade.executeCommand(command);
int ResultsetCount = 0;
if (dataReader.FieldCount > 0)
{
do
{
ResultsetCount++;
if (ResultsetCount == resultsetNo)
{
sendResultsetRecords(dataReader);
break;
}
} while (dataReader.NextResult());
}
dataReader.Close();
if(ResultsetCount < resultsetNo)
{
throw new InvalidResultSetException("Execution returned only " + ResultsetCount.ToString() + " ResultSets. ResultSet [" + resultsetNo.ToString() + "] does not exist.");
}
}
示例3: GetSkyline
public static void GetSkyline(SqlString strQuery, SqlString strOperators, SqlInt32 numberOfRecords, SqlInt32 sortType, SqlInt32 upToLevel)
{
SPMultipleSkylineBNLLevel skyline = new SPMultipleSkylineBNLLevel();
string[] additionalParameters = new string[5];
additionalParameters[4] = upToLevel.ToString();
skyline.GetSkylineTable(strQuery.ToString(), strOperators.ToString(), numberOfRecords.Value, false, Helper.CnnStringSqlclr, Helper.ProviderClr, additionalParameters, sortType.Value, true);
}
示例4: SaveToFolderByZoomXY
public static SqlBoolean SaveToFolderByZoomXY(SqlBinary image, SqlString rootFolderPath, SqlInt32 Zoom, SqlInt32 X, SqlInt32 Y)
{
SqlBoolean result = false;
using (MemoryStream ms = new MemoryStream())
{
ms.Write(image.Value, 0, image.Length);
SetBeginPosition(ms);
using (Icon2TileRendering bitmap = new Icon2TileRendering(ms))
{
bitmap.SaveToPngFile((string)rootFolderPath, Zoom.ToString(), X.ToString(), Y.ToString());
result = true;
}
}
// Put your code here
return result;
}
示例5: CollectNucsFromNeighborhoodOfRefSeqPos
public static SqlString CollectNucsFromNeighborhoodOfRefSeqPos(SqlInt32 pupID, SqlInt64 pos, SqlInt32 posRadius)
{
using (SqlConnection conn = new SqlConnection("context connection=true"))
{
string beginOfSelection = "SELECT refNuc FROM [dbo].[coverageEnc]"
+ "WHERE [pupID] = " + pupID.ToString();
conn.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
long centerRefPos = pos.Value;
int radius = posRadius.Value;
string posList = "";
for (long i = centerRefPos - radius; i <= centerRefPos + radius; i++)
{
posList += i.ToString() + ",";
}
// The last comma is ignored:
posList = posList.Substring(0, posList.Length - 1);
long actualRefPos = pos.Value - posRadius.Value;
cmd.CommandText = beginOfSelection + "AND [pos] in (" + posList + ")";
string result = "";
using (SqlDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{
string actualRefNuc = reader.GetString(0);
result += actualRefNuc;
}
}
if (result.Length != 2 * posRadius + 1)
{
result = HandleMissingPos(conn, beginOfSelection, centerRefPos, radius, result);
}
return new SqlString(result);
}
}
示例6: ToString
/// <summary>
/// Converts the value of the specified SqlInt32 to its equivalent String representation.
/// </summary>
/// <param name="value">An SqlInt32.</param>
/// <returns>The String equivalent of the SqlInt32.</returns>
public static String ToString(SqlInt32 value) { return value.ToString(); }
示例7: ToString
/// <summary>Converts the value from <c>SqlInt32</c> to an equivalent <c>String</c> value.</summary>
public static String ToString(SqlInt32 p) { return p.ToString(); }