C# Class Azavea.Open.DAO.Tests.SqlUtilTests

Datei anzeigen Open project: azavea/net-dao

Public Methods

Method Description
TestGetNullableTableMappingFromSchema ( AbstractSqlConnectionDescriptor connDesc, string nullableTableName ) : void

Tests the classmapping generation off the nullable table schema.

Private Methods

Method Description
AssertParameterPlaceholders ( DbCommand cmd ) : void
AssertParameterPlaceholders ( string sql ) : void
AssertPerformance ( object input, Type desiredType, int loopCount, System.TimeSpan max ) : void
FindParameterPlaceholdersInACommand ( ) : void
FindParametersThrowsIfACommandIsTableDirect ( ) : void
FindParametersThrowsIfACommandisStoredProcedure ( ) : void
FindSingleParameterPlaceholderInSql ( ) : void
FindTwoParameterPlaceholdersInSql ( ) : void
ParameterPlaceholderAfterDoubleQuotedStringIsFound ( ) : void
ParameterPlaceholderAfterSingleQuotedStringIsFound ( ) : void
SkipParameterPlaceholdersInDoubleQuottedString ( ) : void
SkipParameterPlaceholdersInSingleQuottedString ( ) : void
TestMakeDeleteStatement ( ) : void
TestMakeInsertStatement ( ) : void
TestMakeUpdateStatement ( ) : void
TestMakeWhereClause ( ) : void
TestTypePerformance ( ) : void

Method Details

TestGetNullableTableMappingFromSchema() public static method

Tests the classmapping generation off the nullable table schema.
public static TestGetNullableTableMappingFromSchema ( AbstractSqlConnectionDescriptor connDesc, string nullableTableName ) : void
connDesc Azavea.Open.DAO.SQL.AbstractSqlConnectionDescriptor Connection descriptor for your particular database.
nullableTableName string Correctly-cased name of the nullable table (some DBs /// are case sensitive (cough oracle, postgresql cough)
return void