public void DeleteType(string providerName, DataTypeDescriptor dataTypeDescriptor, bool makeAFlush) { Verify.ArgumentNotNullOrEmpty(providerName, "providerName"); Verify.ArgumentNotNull(dataTypeDescriptor, "dataTypeDescriptor"); using (TransactionScope transactionScope = TransactionsFacade.CreateNewScope()) { DynamicTypeManager.DropStore(providerName, dataTypeDescriptor, makeAFlush); transactionScope.Complete(); } if (makeAFlush && dataTypeDescriptor.IsCodeGenerated) { CodeGenerationManager.GenerateCompositeGeneratedAssembly(true); } }