Exemple #1
0
/// <summary>
/// Initialize the template
/// </summary>
        public virtual void Initialize()
        {
            if ((this.Errors.HasErrors == false))
            {
                bool FunctionContextPropertyValueAcquired = false;
                if (this.Session.ContainsKey("FunctionContextProperty"))
                {
                    this._FunctionContextPropertyField   = ((string)(this.Session["FunctionContextProperty"]));
                    FunctionContextPropertyValueAcquired = true;
                }
                if ((FunctionContextPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("FunctionContextProperty");
                    if ((data != null))
                    {
                        this._FunctionContextPropertyField = ((string)(data));
                    }
                }
                bool ConnectionTypeValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionType"))
                {
                    this._ConnectionTypeField   = ((global::Twenty57.Linx.Components.Database.Common.ConnectionType)(this.Session["ConnectionType"]));
                    ConnectionTypeValueAcquired = true;
                }
                if ((ConnectionTypeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionType");
                    if ((data != null))
                    {
                        this._ConnectionTypeField = ((global::Twenty57.Linx.Components.Database.Common.ConnectionType)(data));
                    }
                }
                bool ConnectionStringPropertyNameValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionStringPropertyName"))
                {
                    this._ConnectionStringPropertyNameField   = ((string)(this.Session["ConnectionStringPropertyName"]));
                    ConnectionStringPropertyNameValueAcquired = true;
                }
                if ((ConnectionStringPropertyNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionStringPropertyName");
                    if ((data != null))
                    {
                        this._ConnectionStringPropertyNameField = ((string)(data));
                    }
                }
                bool IsolationLevelNameValueAcquired = false;
                if (this.Session.ContainsKey("IsolationLevelName"))
                {
                    this._IsolationLevelNameField   = ((string)(this.Session["IsolationLevelName"]));
                    IsolationLevelNameValueAcquired = true;
                }
                if ((IsolationLevelNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("IsolationLevelName");
                    if ((data != null))
                    {
                        this._IsolationLevelNameField = ((string)(data));
                    }
                }
                bool ExecutionPathNameValueAcquired = false;
                if (this.Session.ContainsKey("ExecutionPathName"))
                {
                    this._ExecutionPathNameField   = ((string)(this.Session["ExecutionPathName"]));
                    ExecutionPathNameValueAcquired = true;
                }
                if ((ExecutionPathNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ExecutionPathName");
                    if ((data != null))
                    {
                        this._ExecutionPathNameField = ((string)(data));
                    }
                }
                bool ExecutionPathOutputNameValueAcquired = false;
                if (this.Session.ContainsKey("ExecutionPathOutputName"))
                {
                    this._ExecutionPathOutputNameField   = ((string)(this.Session["ExecutionPathOutputName"]));
                    ExecutionPathOutputNameValueAcquired = true;
                }
                if ((ExecutionPathOutputNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ExecutionPathOutputName");
                    if ((data != null))
                    {
                        this._ExecutionPathOutputNameField = ((string)(data));
                    }
                }
            }
        }
Exemple #2
0
/// <summary>
/// Initialize the template
/// </summary>
        public virtual void Initialize()
        {
            if ((this.Errors.HasErrors == false))
            {
                bool FunctionContextPropertyValueAcquired = false;
                if (this.Session.ContainsKey("FunctionContextProperty"))
                {
                    this._FunctionContextPropertyField   = ((string)(this.Session["FunctionContextProperty"]));
                    FunctionContextPropertyValueAcquired = true;
                }
                if ((FunctionContextPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("FunctionContextProperty");
                    if ((data != null))
                    {
                        this._FunctionContextPropertyField = ((string)(data));
                    }
                }
                bool GetParamNameValueAcquired = false;
                if (this.Session.ContainsKey("GetParamName"))
                {
                    this._GetParamNameField   = ((global::System.Func <string, string>)(this.Session["GetParamName"]));
                    GetParamNameValueAcquired = true;
                }
                if ((GetParamNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("GetParamName");
                    if ((data != null))
                    {
                        this._GetParamNameField = ((global::System.Func <string, string>)(data));
                    }
                }
                bool TimeoutValueAcquired = false;
                if (this.Session.ContainsKey("Timeout"))
                {
                    this._TimeoutField   = ((int)(this.Session["Timeout"]));
                    TimeoutValueAcquired = true;
                }
                if ((TimeoutValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Timeout");
                    if ((data != null))
                    {
                        this._TimeoutField = ((int)(data));
                    }
                }
                bool UseTransactionValueAcquired = false;
                if (this.Session.ContainsKey("UseTransaction"))
                {
                    this._UseTransactionField   = ((bool)(this.Session["UseTransaction"]));
                    UseTransactionValueAcquired = true;
                }
                if ((UseTransactionValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("UseTransaction");
                    if ((data != null))
                    {
                        this._UseTransactionField = ((bool)(data));
                    }
                }
                bool TransactionPropertyValueAcquired = false;
                if (this.Session.ContainsKey("TransactionProperty"))
                {
                    this._TransactionPropertyField   = ((string)(this.Session["TransactionProperty"]));
                    TransactionPropertyValueAcquired = true;
                }
                if ((TransactionPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("TransactionProperty");
                    if ((data != null))
                    {
                        this._TransactionPropertyField = ((string)(data));
                    }
                }
                bool ConnectionTypeValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionType"))
                {
                    this._ConnectionTypeField   = ((global::Twenty57.Linx.Components.Database.Common.ConnectionType)(this.Session["ConnectionType"]));
                    ConnectionTypeValueAcquired = true;
                }
                if ((ConnectionTypeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionType");
                    if ((data != null))
                    {
                        this._ConnectionTypeField = ((global::Twenty57.Linx.Components.Database.Common.ConnectionType)(data));
                    }
                }
                bool ConnectionStringPropertyValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionStringProperty"))
                {
                    this._ConnectionStringPropertyField   = ((string)(this.Session["ConnectionStringProperty"]));
                    ConnectionStringPropertyValueAcquired = true;
                }
                if ((ConnectionStringPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionStringProperty");
                    if ((data != null))
                    {
                        this._ConnectionStringPropertyField = ((string)(data));
                    }
                }
                bool SqlValueAcquired = false;
                if (this.Session.ContainsKey("Sql"))
                {
                    this._SqlField   = ((string)(this.Session["Sql"]));
                    SqlValueAcquired = true;
                }
                if ((SqlValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Sql");
                    if ((data != null))
                    {
                        this._SqlField = ((string)(data));
                    }
                }
                bool ReturnModeValueAcquired = false;
                if (this.Session.ContainsKey("ReturnMode"))
                {
                    this._ReturnModeField   = ((global::Twenty57.Linx.Components.Database.ExecuteSQL.ExecuteSQLShared.ReturnModeType)(this.Session["ReturnMode"]));
                    ReturnModeValueAcquired = true;
                }
                if ((ReturnModeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ReturnMode");
                    if ((data != null))
                    {
                        this._ReturnModeField = ((global::Twenty57.Linx.Components.Database.ExecuteSQL.ExecuteSQLShared.ReturnModeType)(data));
                    }
                }
                bool SqlIdentifiersValueAcquired = false;
                if (this.Session.ContainsKey("SqlIdentifiers"))
                {
                    this._SqlIdentifiersField   = ((string)(this.Session["SqlIdentifiers"]));
                    SqlIdentifiersValueAcquired = true;
                }
                if ((SqlIdentifiersValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("SqlIdentifiers");
                    if ((data != null))
                    {
                        this._SqlIdentifiersField = ((string)(data));
                    }
                }
                bool SqlValuesValueAcquired = false;
                if (this.Session.ContainsKey("SqlValues"))
                {
                    this._SqlValuesField   = ((string)(this.Session["SqlValues"]));
                    SqlValuesValueAcquired = true;
                }
                if ((SqlValuesValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("SqlValues");
                    if ((data != null))
                    {
                        this._SqlValuesField = ((string)(data));
                    }
                }
                bool ResultTypeFieldsValueAcquired = false;
                if (this.Session.ContainsKey("ResultTypeFields"))
                {
                    this._ResultTypeFieldsField   = ((global::Twenty57.Linx.Components.Database.ExecuteSQL.ResultTypeFields)(this.Session["ResultTypeFields"]));
                    ResultTypeFieldsValueAcquired = true;
                }
                if ((ResultTypeFieldsValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ResultTypeFields");
                    if ((data != null))
                    {
                        this._ResultTypeFieldsField = ((global::Twenty57.Linx.Components.Database.ExecuteSQL.ResultTypeFields)(data));
                    }
                }
                bool RowTypeValueAcquired = false;
                if (this.Session.ContainsKey("RowType"))
                {
                    this._RowTypeField   = ((global::Twenty57.Linx.Plugin.Common.ITypeReference)(this.Session["RowType"]));
                    RowTypeValueAcquired = true;
                }
                if ((RowTypeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("RowType");
                    if ((data != null))
                    {
                        this._RowTypeField = ((global::Twenty57.Linx.Plugin.Common.ITypeReference)(data));
                    }
                }
                bool RowTypeNameValueAcquired = false;
                if (this.Session.ContainsKey("RowTypeName"))
                {
                    this._RowTypeNameField   = ((string)(this.Session["RowTypeName"]));
                    RowTypeNameValueAcquired = true;
                }
                if ((RowTypeNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("RowTypeName");
                    if ((data != null))
                    {
                        this._RowTypeNameField = ((string)(data));
                    }
                }
                bool ExecutionPathNameValueAcquired = false;
                if (this.Session.ContainsKey("ExecutionPathName"))
                {
                    this._ExecutionPathNameField   = ((string)(this.Session["ExecutionPathName"]));
                    ExecutionPathNameValueAcquired = true;
                }
                if ((ExecutionPathNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ExecutionPathName");
                    if ((data != null))
                    {
                        this._ExecutionPathNameField = ((string)(data));
                    }
                }
                bool ExecutionPathOutputNameValueAcquired = false;
                if (this.Session.ContainsKey("ExecutionPathOutputName"))
                {
                    this._ExecutionPathOutputNameField   = ((string)(this.Session["ExecutionPathOutputName"]));
                    ExecutionPathOutputNameValueAcquired = true;
                }
                if ((ExecutionPathOutputNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ExecutionPathOutputName");
                    if ((data != null))
                    {
                        this._ExecutionPathOutputNameField = ((string)(data));
                    }
                }
            }
        }
Exemple #3
0
/// <summary>
/// Initialize the template
/// </summary>
        public virtual void Initialize()
        {
            if ((this.Errors.HasErrors == false))
            {
                bool FunctionContextPropertyValueAcquired = false;
                if (this.Session.ContainsKey("FunctionContextProperty"))
                {
                    this._FunctionContextPropertyField   = ((string)(this.Session["FunctionContextProperty"]));
                    FunctionContextPropertyValueAcquired = true;
                }
                if ((FunctionContextPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("FunctionContextProperty");
                    if ((data != null))
                    {
                        this._FunctionContextPropertyField = ((string)(data));
                    }
                }
                bool ConnectionTypeValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionType"))
                {
                    this._ConnectionTypeField   = ((global::Twenty57.Linx.Components.Database.Common.ConnectionType)(this.Session["ConnectionType"]));
                    ConnectionTypeValueAcquired = true;
                }
                if ((ConnectionTypeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionType");
                    if ((data != null))
                    {
                        this._ConnectionTypeField = ((global::Twenty57.Linx.Components.Database.Common.ConnectionType)(data));
                    }
                }
                bool ConnectionStringPropertyValueAcquired = false;
                if (this.Session.ContainsKey("ConnectionStringProperty"))
                {
                    this._ConnectionStringPropertyField   = ((string)(this.Session["ConnectionStringProperty"]));
                    ConnectionStringPropertyValueAcquired = true;
                }
                if ((ConnectionStringPropertyValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ConnectionStringProperty");
                    if ((data != null))
                    {
                        this._ConnectionStringPropertyField = ((string)(data));
                    }
                }
                bool TimeoutValueAcquired = false;
                if (this.Session.ContainsKey("Timeout"))
                {
                    this._TimeoutField   = ((int)(this.Session["Timeout"]));
                    TimeoutValueAcquired = true;
                }
                if ((TimeoutValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Timeout");
                    if ((data != null))
                    {
                        this._TimeoutField = ((int)(data));
                    }
                }
                bool BatchSizeValueAcquired = false;
                if (this.Session.ContainsKey("BatchSize"))
                {
                    this._BatchSizeField   = ((int)(this.Session["BatchSize"]));
                    BatchSizeValueAcquired = true;
                }
                if ((BatchSizeValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("BatchSize");
                    if ((data != null))
                    {
                        this._BatchSizeField = ((int)(data));
                    }
                }
                bool TableNameValueAcquired = false;
                if (this.Session.ContainsKey("TableName"))
                {
                    this._TableNameField   = ((string)(this.Session["TableName"]));
                    TableNameValueAcquired = true;
                }
                if ((TableNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("TableName");
                    if ((data != null))
                    {
                        this._TableNameField = ((string)(data));
                    }
                }
                bool ColumnNamesValueAcquired = false;
                if (this.Session.ContainsKey("ColumnNames"))
                {
                    this._ColumnNamesField   = ((string[])(this.Session["ColumnNames"]));
                    ColumnNamesValueAcquired = true;
                }
                if ((ColumnNamesValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ColumnNames");
                    if ((data != null))
                    {
                        this._ColumnNamesField = ((string[])(data));
                    }
                }
                bool ColumnPropertyNamesValueAcquired = false;
                if (this.Session.ContainsKey("ColumnPropertyNames"))
                {
                    this._ColumnPropertyNamesField   = ((string[])(this.Session["ColumnPropertyNames"]));
                    ColumnPropertyNamesValueAcquired = true;
                }
                if ((ColumnPropertyNamesValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ColumnPropertyNames");
                    if ((data != null))
                    {
                        this._ColumnPropertyNamesField = ((string[])(data));
                    }
                }
                bool ColumnDataTypesValueAcquired = false;
                if (this.Session.ContainsKey("ColumnDataTypes"))
                {
                    this._ColumnDataTypesField   = ((global::Twenty57.Linx.Components.Database.Common.DatabaseModel.DataType[])(this.Session["ColumnDataTypes"]));
                    ColumnDataTypesValueAcquired = true;
                }
                if ((ColumnDataTypesValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ColumnDataTypes");
                    if ((data != null))
                    {
                        this._ColumnDataTypesField = ((global::Twenty57.Linx.Components.Database.Common.DatabaseModel.DataType[])(data));
                    }
                }
                bool ExecutionPathOutputNameValueAcquired = false;
                if (this.Session.ContainsKey("ExecutionPathOutputName"))
                {
                    this._ExecutionPathOutputNameField   = ((string)(this.Session["ExecutionPathOutputName"]));
                    ExecutionPathOutputNameValueAcquired = true;
                }
                if ((ExecutionPathOutputNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ExecutionPathOutputName");
                    if ((data != null))
                    {
                        this._ExecutionPathOutputNameField = ((string)(data));
                    }
                }
                bool ExecutionPathNameValueAcquired = false;
                if (this.Session.ContainsKey("ExecutionPathName"))
                {
                    this._ExecutionPathNameField   = ((string)(this.Session["ExecutionPathName"]));
                    ExecutionPathNameValueAcquired = true;
                }
                if ((ExecutionPathNameValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ExecutionPathName");
                    if ((data != null))
                    {
                        this._ExecutionPathNameField = ((string)(data));
                    }
                }
            }
        }