示例#1
0
        /// <inheritdoc />
        public IMigrationExpression Reverse()
        {
            var expression = new DeleteDataExpression {
                SchemaName = SchemaName,
                TableName  = TableName
            };

            foreach (var row in Rows)
            {
                var dataDefinition = new DeletionDataDefinition();
                dataDefinition.AddRange(row);
                expression.Rows.Add(dataDefinition);
            }
            return(expression);
        }
        public IMigrationExpression Reverse()
        {
            var expression = new DeleteDataExpression
                                {
                                    SchemaName = SchemaName,
                                    TableName = TableName
                                };

            foreach (var row in Rows)
            {
                var dataDefinition = new DeletionDataDefinition();
                dataDefinition.AddRange(row);

                expression.Rows.Add(dataDefinition);
            }

            return expression;
        }