예제 #1
0
        internal XtendSqlRuleExecutionContext(SqlRuleExecutionContext ruleExecutionContext)
        {
            this.SchemaModel    = ruleExecutionContext.SchemaModel;
            this.ModelElement   = ruleExecutionContext.ModelElement;
            this.ScriptFragment = ruleExecutionContext.ScriptFragment;
            this.RuleDescriptor = ruleExecutionContext.RuleDescriptor;

            this.ElementName = ruleExecutionContext.SchemaModel.DisplayServices.GetElementName(ModelElement, ElementNameStyle.EscapedFullyQualifiedName);
            this.Schema      = ModelElement.GetReferenced(Procedure.Schema).SingleOrDefault(); // schema of the procedure
        }