コード例 #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.CreateStoredProcedure(this.procedure, this.body);
            return Enumerable.Empty<XElement>();
        }
コード例 #2
0
 public override void Rollback(Transaction transaction, XElement commandRollbackInfo)
 {
     transaction.CreateStoredProcedure(
         this.procedure,
         new StoredProcedureBody(
             commandRollbackInfo.Element("declarations").Value,
             commandRollbackInfo.Element("body").Value
         )
     );
 }