메소드 | 설명 | |
---|---|---|
CheckForNullString ( string text ) : object |
If the string is empty or null, returns a System.DBNull.Value.
|
|
CheckNull ( System.DateTime dateTime ) : object |
Checks the value of the specified value type for a null value. Returns null if the value represents a null value
|
|
CheckNull ( int obj ) : object |
Checks the value type and returns null if the value is "null-equivalent".
|
|
CheckNull ( |
Returns a true null if the object is DBNull.
|
|
CheckNull ( string obj ) : string |
Returns an empty string if the value is null.
|
|
CheckNullString ( object obj ) : string |
If the string is DBNull, returns null. Otherwise returns the string.
|
|
ExecuteDataTable ( |
Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlConnection. e.g.: DataTable dt = ExecuteDataTable(conn, CommandType.StoredProcedure, "GetOrders"); |
|
ExecuteDataTable ( |
Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlTransaction. e.g.: DataTable dt = ExecuteDataTable(trans, CommandType.StoredProcedure, "GetOrders"); |
|
ExecuteDataTable ( string connectionString, CommandType commandType, string commandText ) : |
Execute a SqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: DataTable dt = ExecuteDataTable(connString, CommandType.StoredProcedure, "GetOrders"); |
|
LoadArchiveCount ( IDataReader reader ) : IList |
||
LoadArchiveLink ( IDataReader reader ) : |
||
LoadBlogAlias ( IDataReader reader ) : BlogAlias |
Loads the blog alias.
|
|
LoadBlogGroup ( IDataReader reader ) : |
||
LoadConfigData ( IDataReader reader ) : BlogInfo | ||
LoadEnclosure ( IDataReader reader ) : |
||
LoadEntry ( IDataReader reader ) : |
||
LoadEntryDayCollection ( IDataReader reader ) : IList |
||
LoadEntryStatsView ( IDataReader reader ) : |
||
LoadEntryWithCategories ( IDataReader reader ) : |
Only use this when loading a SINGLE entry from a reader.
|
|
LoadHost ( IDataReader reader, HostInfo info ) : void |
Loads the host from the data reader.
|
|
LoadImage ( IDataReader reader ) : Image | ||
LoadKeyWord ( IDataReader reader ) : |
||
LoadLink ( |
||
LoadLink ( IDataReader reader ) : |
||
LoadLinkCategory ( |
||
LoadLinkCategory ( IDataReader reader ) : |
||
LoadLogEntry ( IDataReader reader ) : |
Loads the single log entry.
|
|
LoadMetaTag ( IDataReader reader ) : |
||
LoadReferrer ( IDataReader reader ) : |
||
LoadTags ( IDataReader reader ) : int>.IDictionary |
||
LoadViewStat ( IDataReader reader ) : |
||
MakeInParam ( string name, SqlDbType sqlType, int size, object value ) : |
Make input param.
|
|
MakeInParam ( string ParamName, object Value ) : |
||
MakeOutParam ( string ParamName, SqlDbType DbType, int Size ) : |
Make input param.
|
|
MakeParam ( string ParamName, SqlDbType DbType, |
Make stored procedure param.
|
|
ReadBoolean ( IDataReader reader, string columnName ) : bool |
Reads a boolean from the data reader. If the value is null, returns false.
|
|
ReadDate ( IDataReader reader, string columnName ) : System.DateTime |
Reads the date.
|
|
ReadDate ( IDataReader reader, string columnName, System.DateTime defaultValue ) : System.DateTime |
Reads the date.
|
|
ReadInt32 ( IDataReader reader, string columnName ) : int |
Reads the int from the data reader.
|
|
ReadInt32 ( IDataReader reader, string columnName, int defaultValue ) : int |
Reads the int from the data reader. If the value is null, returns the default value.
|
|
ReadInt64 ( IDataReader reader, string columnName ) : long |
Reads the long from the data reader.
|
|
ReadInt64 ( IDataReader reader, string columnName, long defaultValue ) : long |
Reads the long from the data reader. If the value is null, returns the default value.
|
|
ReadIpAddress ( IDataReader reader, string columnName ) : |
Reads the string.
|
|
ReadNullableInt ( IDataReader reader, string columnName ) : int? |
Reads the int from the data reader.
|
|
ReadString ( IDataReader reader, string columnName ) : string |
Reads the string.
|
|
ReadUri ( IDataReader reader, string columnName ) : |
Reads an URI from the database.
|
|
ReturnNullIfEmpty ( string obj ) : string |
Returns null if the value is an empty string.
|
메소드 | 설명 | |
---|---|---|
AttachParameters ( |
This method is used to attach array of SqlParameters to a SqlCommand. This method will assign a value of DbNull to any parameter with a direction of InputOutput and a value of null. This behavior will prevent default values from being used, but this will be the less common case than an intended pure output parameter (derived as InputOutput) where the user provided no input value.
|
|
DebugPrintCommand ( |
||
GetMaxItems ( IDataReader reader ) : int | ||
IsNewDay ( System.DateTime dtCurrent, System.DateTime dtDay ) : bool | ||
LoadEntry ( IDataReader reader, bool buildLinks ) : |
||
LoadEntry ( IDataReader reader, |
||
LoadEntryCollectionFromDataReader ( IDataReader reader ) : IList |
||
LoadFeedbackItem ( IDataReader reader ) : |
||
LoadFeedbackItem ( IDataReader reader, |
||
LoadFeedbackItem ( IDataReader reader, |
||
PrepareCommand ( |
This method opens (if necessary) and assigns a connection, transaction, command type and parameters to the provided command.
|
|
SetUrlPattern ( |
public static CheckForNullString ( string text ) : object | ||
text | string | |
리턴 | object |
public static CheckNull ( System.DateTime dateTime ) : object | ||
dateTime | System.DateTime | Date time. |
리턴 | object |
public static CheckNull ( |
||
obj | The obj. | |
리턴 | string |
public static CheckNull ( string obj ) : string | ||
obj | string | The obj. |
리턴 | string |
public static CheckNullString ( object obj ) : string | ||
obj | object | The obj. |
리턴 | string |
public static ExecuteDataTable ( |
||
connection | a valid SqlConnection | |
commandType | CommandType | the CommandType (stored procedure, text, etc.) |
commandText | string | the stored procedure name or T-SQL command |
리턴 |
public static ExecuteDataTable ( |
||
transaction | a valid SqlTransaction | |
commandType | CommandType | the CommandType (stored procedure, text, etc.) |
commandText | string | the stored procedure name or T-SQL command |
리턴 |
public static ExecuteDataTable ( string connectionString, CommandType commandType, string commandText ) : |
||
connectionString | string | a valid connection string for a SqlConnection |
commandType | CommandType | the CommandType (stored procedure, text, etc.) |
commandText | string | the stored procedure name or T-SQL command |
리턴 |
public static LoadArchiveCount ( IDataReader reader ) : IList |
||
reader | IDataReader | |
리턴 | IList |
public static LoadArchiveLink ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadBlogAlias ( IDataReader reader ) : BlogAlias | ||
reader | IDataReader | The reader. |
리턴 | BlogAlias |
public static LoadBlogGroup ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadConfigData ( IDataReader reader ) : BlogInfo | ||
reader | IDataReader | |
리턴 | BlogInfo |
public static LoadEnclosure ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadEntry ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadEntryDayCollection ( IDataReader reader ) : IList |
||
reader | IDataReader | |
리턴 | IList |
public static LoadEntryStatsView ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadEntryWithCategories ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadHost ( IDataReader reader, HostInfo info ) : void | ||
reader | IDataReader | Reader. |
info | HostInfo | HostInfo |
리턴 | void |
public static LoadImage ( IDataReader reader ) : Image | ||
reader | IDataReader | |
리턴 | Image |
public static LoadKeyWord ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadLink ( |
||
dr | ||
리턴 |
public static LoadLink ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadLinkCategory ( |
||
dr | ||
리턴 |
public static LoadLinkCategory ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadLogEntry ( IDataReader reader ) : |
||
reader | IDataReader | The reader. |
리턴 |
public static LoadMetaTag ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadReferrer ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static LoadTags ( IDataReader reader ) : int>.IDictionary |
||
reader | IDataReader | |
리턴 | int>.IDictionary |
public static LoadViewStat ( IDataReader reader ) : |
||
reader | IDataReader | |
리턴 |
public static MakeInParam ( string name, SqlDbType sqlType, int size, object value ) : |
||
name | string | Name of param. |
sqlType | SqlDbType | Param type. |
size | int | Param size. |
value | object | Param value. |
리턴 |
public static MakeInParam ( string ParamName, object Value ) : |
||
ParamName | string | |
Value | object | |
리턴 |
public static MakeOutParam ( string ParamName, SqlDbType DbType, int Size ) : |
||
ParamName | string | Name of param. |
DbType | SqlDbType | Param type. |
Size | int | Param size. |
리턴 |
public static MakeParam ( string ParamName, SqlDbType DbType, |
||
ParamName | string | Name of param. |
DbType | SqlDbType | Param type. |
Size | Param size. | |
Direction | ParameterDirection | Parm direction. |
Value | object | Param value. |
리턴 |
public static ReadBoolean ( IDataReader reader, string columnName ) : bool | ||
reader | IDataReader | The reader. |
columnName | string | Name of the column. |
리턴 | bool |
public static ReadDate ( IDataReader reader, string columnName ) : System.DateTime | ||
reader | IDataReader | The reader. |
columnName | string | Name of the column. |
리턴 | System.DateTime |
public static ReadDate ( IDataReader reader, string columnName, System.DateTime defaultValue ) : System.DateTime | ||
reader | IDataReader | The reader. |
columnName | string | Name of the column. |
defaultValue | System.DateTime | The default value. |
리턴 | System.DateTime |
public static ReadInt32 ( IDataReader reader, string columnName ) : int | ||
reader | IDataReader | The reader. |
columnName | string | Name of the column. |
리턴 | int |
public static ReadInt32 ( IDataReader reader, string columnName, int defaultValue ) : int | ||
reader | IDataReader | The reader. |
columnName | string | Name of the column. |
defaultValue | int | devault value for the field |
리턴 | int |
public static ReadInt64 ( IDataReader reader, string columnName ) : long | ||
reader | IDataReader | The reader. |
columnName | string | Name of the column. |
리턴 | long |
public static ReadInt64 ( IDataReader reader, string columnName, long defaultValue ) : long | ||
reader | IDataReader | The reader. |
columnName | string | Name of the column. |
defaultValue | long | devault value for the field |
리턴 | long |
public static ReadIpAddress ( IDataReader reader, string columnName ) : |
||
reader | IDataReader | The reader. |
columnName | string | Name of the coumn. |
리턴 |
public static ReadNullableInt ( IDataReader reader, string columnName ) : int? | ||
reader | IDataReader | The reader. |
columnName | string | Name of the column. |
리턴 | int? |
public static ReadString ( IDataReader reader, string columnName ) : string | ||
reader | IDataReader | The reader. |
columnName | string | Name of the coumn. |
리턴 | string |
public static ReadUri ( IDataReader reader, string columnName ) : |
||
reader | IDataReader | |
columnName | string | |
리턴 |
public static ReturnNullIfEmpty ( string obj ) : string | ||
obj | string | The obj. |
리턴 | string |