C# Class nHydrate.DataImport.SqlClient.SchemaModelHelper

Inheritance: ISchemaModelHelper
ファイルを表示 Open project: nHydrate/nHydrate Class Usage Examples

Public Methods

Method Description
GetSQLVersion ( string connectionString ) : SQLServerTypeConstants
IsSupportedSQLVersion ( string connectionString ) : bool
IsValidConnectionString ( string connectionString ) : bool

Private Methods

Method Description
GetFunctionBody ( string schema, string name, string connectionString ) : string
GetSqlColumnsForComputed ( ) : string
GetSqlColumnsForTable ( ) : string
GetSqlColumnsForTable ( string tableName ) : string
GetSqlDatabaseTables ( ) : string
GetSqlForFunctions ( ) : string
GetSqlForIndexes ( ) : string
GetSqlForRelationships ( ) : string
GetSqlForStoredProcedures ( ) : string
GetSqlForStoredProcedures ( string name ) : string
GetSqlForStoredProceduresBody ( string schema, string spName, string connectionString ) : string
GetSqlForStoredProceduresColumns ( StoredProc sp ) : string
GetSqlForStoredProceduresParameters ( ) : string
GetSqlForUniqueConstraints ( ) : string
GetSqlForViews ( ) : string
GetSqlForViewsColumns ( ) : string
GetSqlIndexesForTable ( ) : string
GetViewBody ( string sql ) : string
StripComments ( string sql ) : string

Not perfect!! Just strips off what looks like comment

Method Details

GetSQLVersion() public method

public GetSQLVersion ( string connectionString ) : SQLServerTypeConstants
connectionString string
return SQLServerTypeConstants

IsSupportedSQLVersion() public method

public IsSupportedSQLVersion ( string connectionString ) : bool
connectionString string
return bool

IsValidConnectionString() public method

public IsValidConnectionString ( string connectionString ) : bool
connectionString string
return bool