예제 #1
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Value:
                    m_odpParameter.SetValues(reader.ReadVariantArray());
                    break;

                case MemberName.Label:
                    m_odpParameter.SetLabels(reader.ReadStringArray());
                    break;

                case MemberName.IsMultiValue:
                    m_odpParameter.SetIsMultiValue(reader.ReadBoolean());
                    break;

                case MemberName.Prompt:
                    m_odpParameter.SetPrompt(reader.ReadString());
                    break;

                case MemberName.IsUserSupplied:
                    m_odpParameter.SetIsUserSupplied(reader.ReadBoolean());
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
예제 #2
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(RecordSetInfo.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ReaderExtensionsSupported:
                    this.m_readerExtensionsSupported = reader.ReadBoolean();
                    break;

                case MemberName.FieldPropertyNames:
                    this.m_fieldPropertyNames = reader.ReadListOfRIFObjects <RecordSetPropertyNamesList>();
                    break;

                case MemberName.CompareOptions:
                    this.m_compareOptions = (CompareOptions)reader.ReadEnum();
                    break;

                case MemberName.FieldNames:
                    this.m_fieldNames = reader.ReadStringArray();
                    break;

                case MemberName.CommandText:
                    this.m_commandText = reader.ReadString();
                    break;

                case MemberName.RewrittenCommandText:
                    this.m_rewrittenCommandText = reader.ReadString();
                    break;

                case MemberName.CultureName:
                    this.m_cultureName = reader.ReadString();
                    break;

                case MemberName.ExecutionTime:
                    this.m_executionTime = reader.ReadDateTime();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ErrorOccurred:
                    ErrorOccurred = reader.ReadBoolean();
                    break;

                case MemberName.Value:
                    Value = reader.ReadVariant();
                    break;

                case MemberName.HasCode:
                    HasCode = reader.ReadBoolean();
                    break;

                case MemberName.Code:
                    Code = (ProcessingErrorCode)reader.ReadEnum();
                    break;

                case MemberName.Severity:
                    Severity = (Severity)reader.ReadEnum();
                    break;

                case MemberName.FieldStatus:
                    FieldStatus = (DataFieldStatus)reader.ReadEnum();
                    break;

                case MemberName.Arguments:
                    Arguments = reader.ReadStringArray();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
예제 #4
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(LookupObjResult.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.LookupTablePartitionID:
                    this.m_lookupTablePartitionId = new ReferenceID(reader.ReadInt64());
                    break;

                case MemberName.HasCode:
                    this.m_hasErrorCode = reader.ReadBoolean();
                    break;

                case MemberName.Code:
                    this.m_errorCode = (ProcessingErrorCode)reader.ReadEnum();
                    break;

                case MemberName.Severity:
                    this.m_errorSeverity = (Severity)reader.ReadEnum();
                    break;

                case MemberName.FieldStatus:
                    this.m_dataFieldStatus = (DataFieldStatus)reader.ReadEnum();
                    break;

                case MemberName.Arguments:
                    this.m_errorMessageArgs = reader.ReadStringArray();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }