Skip to main content

DbString

This class represents a SQL string, it can be used if you need to denote your parameter is a Char vs VarChar vs nVarChar vs nChar

Assembly: ServiceStack.OrmLite.dll​
View Source​
Declaration
public sealed class DbString : object, SqlMapper.ICustomQueryParameter

Properties​

IsAnsiDefault​

Default value for IsAnsi.

View Source​
Declaration
public static bool IsAnsiDefault { get; set; }

IsAnsi​

Ansi vs Unicode

View Source​
Declaration
public bool IsAnsi { get; set; }

IsFixedLength​

Fixed length

View Source​
Declaration
public bool IsFixedLength { get; set; }

Length​

Length of the string -1 for max

View Source​
Declaration
public int Length { get; set; }

Value​

The value of the string

View Source​
Declaration
public string Value { get; set; }

Fields​

DefaultLength​

A value to set the default value of strings going through Dapper. Default is 4000, any value larger than this field will not have the default value applied.

View Source​
Declaration
public const int DefaultLength = null

Methods​

AddParameter(IDbCommand, String)​

Add the parameter to the command... internal use only

View Source​
Declaration
public void AddParameter(IDbCommand command, string name)
Parameters​
TypeName
IDbCommandcommand
System.Stringname

Implements​