Exemplo n.º 1
0
        public override IEnumerable<XElement> Apply(Transaction transaction, bool forceIntegrity)
        {
            if(!forceIntegrity)
            {
                throw new NotImplementedException("Safe stored procedure creation is not implemented yet");
            }

            transaction.CreateView(this.viewName, this.body);
            return Enumerable.Empty<XElement>();
        }
Exemplo n.º 2
0
 public override void Rollback(Transaction transaction, XElement commandRollbackInfo)
 {
     transaction.CreateView(this.viewName, commandRollbackInfo.Element("body").Value);
 }