public override string AlterTrigger(DataContext sourceDataContext, DataContext targetDataContext, Trigger trigger)
        {
            // TODO: Calling method will also need to check for dropping this trigger
            // TODO: Add check for DataProperties.DropItemsInTargetOnNotForReplication and handle
            // TODO: that accordingly for CheckConstraints, Identity Columns, Triggers, and Foreign Keys.
            if (!(DataProperties.ReplicateItemsMarkedNotForReplication || !trigger.IsNotForReplication))
            {
                return(string.Empty);
            }

            return(sourceDataContext.ContextType != targetDataContext.ContextType
                ? null
                : SqlServerModuleManager.GetAlterDefinition(trigger.Definition));
        }
 public override string AlterTableValuedFunction(DataContext sourceDataContext, DataContext targetDataContext, TableValuedFunction tableValuedFunction)
 {
     return(sourceDataContext.ContextType != targetDataContext.ContextType
         ? null
         : SqlServerModuleManager.GetAlterDefinition(tableValuedFunction.Definition));
 }
 public override string AlterScalarFunction(DataContext sourceDataContext, DataContext targetDataContext, ScalarFunction scalarFunction)
 {
     return(sourceDataContext.ContextType != targetDataContext.ContextType
         ? null
         : SqlServerModuleManager.GetAlterDefinition(scalarFunction.Definition));
 }
 public override string AlterStoredProcedure(DataContext sourceDataContext, DataContext targetDataContext, StoredProcedure storedProcedure)
 {
     return(sourceDataContext.ContextType != targetDataContext.ContextType
         ? null
         : SqlServerModuleManager.GetAlterDefinition(storedProcedure.Definition));
 }
 public override string AlterView(DataContext sourceDataContext, DataContext targetDataContext, View view)
 {
     return(sourceDataContext.ContextType != targetDataContext.ContextType
         ? null
         : SqlServerModuleManager.GetAlterDefinition(view.Definition));
 }