Esempio n. 1
0
        internal void Init_from_reader(DB_reader reader)
        {
            if (reader == null || reader.IsClosed)
            {
                return;
            }

            this.TABLE_SCHEMA = reader.GetString("TABLE_SCHEMA");
            this.TABLE_NAME   = reader.GetString("TABLE_NAME");
        }
        internal void Init_from_reader(HssUtility.SQLserver.DB_reader reader)
        {
            if (reader == null || reader.IsClosed)
            {
                return;
            }

            this.pk_ID = reader.GetInt("DTCModelMappingID");
            reader.GetString("Country", this.Country);                             /*Optional 2*/
            reader.GetString("Issue", this.Issue);                                 /*Optional 3*/
            reader.GetInt("RecordYear", this.RecordYear);                          /*Optional 4*/
            reader.GetString("IncomeEvent", this.IncomeEvent);                     /*Optional 5*/
            reader.GetInt("ModelNumber", this.ModelNumber);
            reader.GetDateTime("ADRRecordDate", this.ADRRecordDate);               /*Optional 7*/
            reader.GetDateTime("ORDPayDate", this.ORDPayDate);                     /*Optional 8*/
            reader.GetInt("SecurityTypeID", this.SecurityTypeID);                  /*Optional 9*/
            reader.GetDateTime("ADRRecordDate_End", this.ADRRecordDate_End);       /*Optional 10*/
            reader.GetBool("AtSourceSumFromDetails", this.AtSourceSumFromDetails); /*Optional 11*/

            this.SyncWithDB();
        }