C# Class Composite.Plugins.Data.DataProviders.MSSqlServerDataProvider.Foundation.SqlDataProviderStoreManipulator

Show file Open project: Orckestra/C1-CMS Class Usage Examples

Public Methods

Method Description
ExecuteNonQuery ( SqlCommand cmd ) : void
ExecuteNonQuery ( string commandText ) : void
ExecuteReader ( string commandText ) : DataTable
ExecuteStoredProcedure ( string spName, string spParams ) : void

Private Methods

Method Description
AddLocale ( DataTypeDescriptor typeDescriptor, CultureInfo cultureInfo ) : void
AlterColumn ( string tableName, string columnInfo ) : void
AlterScopeData ( Composite.Data.DynamicTypes.UpdateDataTypeDescriptor updateDataTypeDescriptor, Composite.Data.DynamicTypes.DataTypeChangeDescriptor changeDescriptor, Composite.Data.DataScopeIdentifier dataScope ) : void
AlterStore ( Composite.Data.DynamicTypes.UpdateDataTypeDescriptor updateDataTypeDescriptor, Composite.Data.DynamicTypes.DataTypeChangeDescriptor changeDescriptor, Composite.Data.DataScopeIdentifier dataScope, CultureInfo culture ) : void
AlterStoresForType ( Composite.Data.DynamicTypes.UpdateDataTypeDescriptor updateDataTypeDescriptor ) : void
AppendFields ( string tableName, Composite.Data.DynamicTypes.DataTypeChangeDescriptor changeDescriptor, IEnumerable addedFieldDescriptions, object>.Dictionary defaultValues = null ) : void
ConfigureColumn ( string tableName, string columnName, Composite.Data.DynamicTypes.DataFieldDescriptor fieldDescriptor, Composite.Data.DynamicTypes.DataFieldDescriptor originalFieldDescriptor, bool changes ) : void
CreateColumn ( string tableName, Composite.Data.DynamicTypes.DataFieldDescriptor fieldDescriptor, object defaultValue = null ) : void
CreateIndex ( string tableName, Composite.Data.DynamicTypes.DataTypeIndex index ) : void
CreateScopeData ( DataTypeDescriptor typeDescriptor, Composite.Data.DataScopeIdentifier dataScope ) : void
CreateStore ( DataTypeDescriptor typeDescriptor, Composite.Data.DataScopeIdentifier dataScope, CultureInfo cultureInfo, Action existingTablesValidator = null ) : void
CreateStoresForType ( DataTypeDescriptor typeDescriptor, Action existingTablesValidator ) : void
DropConstraints ( string tableName, bool includingPrimaryKey ) : void
DropFields ( string tableName, IEnumerable fieldsToDrop, IEnumerable fields ) : void
DropIndex ( string tableName, Composite.Data.DynamicTypes.DataTypeIndex index ) : void
DropScopeData ( DataTypeDescriptor typeDescriptor, Composite.Data.DataScopeIdentifier dataScope ) : void
DropStore ( DataTypeDescriptor dataTypeDescriptor, Composite.Data.DataScopeIdentifier dataScope, CultureInfo cultureInfo ) : void
DropStoresForType ( string providerName, DataTypeDescriptor typeDescriptor ) : void
GeneratePrimaryKeyContraintName ( string tableName ) : string
GetColumnInfo ( string tableName, string columnName, Composite.Data.DynamicTypes.DataFieldDescriptor fieldDescriptor, bool includeDefault, bool forceNullable ) : string
GetCommonFields ( Composite.Data.DynamicTypes.DataTypeChangeDescriptor changeDescriptor ) : StringBuilder
GetConfiguredTableName ( DataTypeDescriptor dataTypeDescriptor, Composite.Data.DataScopeIdentifier dataScope, string cultureName ) : string
GetConstraints ( string tableName, string constraintType = null ) : IEnumerable
GetCultures ( DataTypeDescriptor typeDescriptor ) : IEnumerable
GetDefaultValueText ( Composite.Data.DynamicTypes.DefaultValue defaultValue ) : string
GetDefaultValueText ( StoreFieldType storeFieldType ) : string
GetIndexName ( Composite.Data.DynamicTypes.DataTypeIndex index ) : string
GetTablesList ( ) : List
HandleDisablingOfPublication ( Composite.Data.DynamicTypes.DataTypeChangeDescriptor changeDescriptor ) : void
HandleEnablingOfPublication ( Composite.Data.DynamicTypes.DataTypeChangeDescriptor changeDescriptor ) : void
ImplementFieldChanges ( string tableName, IEnumerable existingFieldDescription ) : void
IsPrimaryKeyContraint ( string contraintName ) : bool
MakeVerboseException ( Exception ex ) : Exception
RemoveLocale ( string providerName, DataTypeDescriptor typeDescriptor, CultureInfo cultureInfo ) : void
RenameColumn ( string tableName, string oldColumnName, string newColumnName ) : void
RenameTable ( string oldTableName, string newTableName ) : void
SetDefaultValue ( string tableName, string columnName, Composite.Data.DynamicTypes.DefaultValue defaultValue ) : string
SetPrimaryKey ( string tableName, IEnumerable fieldNames, bool createAsClustered ) : string
SqlDataProviderStoreManipulator ( string connectionString, IEnumerable generatedInterfaces ) : System
SqlQuoted ( object obj ) : string
SqlQuoted ( string theString ) : string
SqlSafeName ( string prefix, string elementName ) : string
SqlSafeName ( string prefix, string parentName, string subName ) : string
TranslatesIntoDefaultConstraint ( Composite.Data.DynamicTypes.DefaultValue defaultValue ) : bool
TryNormalizeTypeFullName ( string typeName ) : string

Method Details

ExecuteNonQuery() public method

public ExecuteNonQuery ( SqlCommand cmd ) : void
cmd System.Data.SqlClient.SqlCommand
return void

ExecuteNonQuery() public method

public ExecuteNonQuery ( string commandText ) : void
commandText string
return void

ExecuteReader() public method

public ExecuteReader ( string commandText ) : DataTable
commandText string
return System.Data.DataTable

ExecuteStoredProcedure() public method

public ExecuteStoredProcedure ( string spName, string spParams ) : void
spName string
spParams string
return void