Esempio n. 1
0
 /**
  * It converts the DataReader object to PropertyDescriptionCodeDTO and returns PropertyDescCode details
  * @propertyDescCode - DTO of PropertyDescCode
  * @dataReader - Contains SQL query result
  * @return PropertyDescriptionCodeDTO - PropertyDescCode details
  */
 private PropertyDescriptionCodeDTO MakeDTO(PropertyDescriptionCodeDTO propertyDescCode, SqlDataReader dataReader)
 {
     propertyDescCode    = new PropertyDescriptionCodeDTO();
     propertyDescCode.ID = ValidationUtility.ToInteger(dataReader["ID"].ToString());
     propertyDescCode.PropertyDescCode            = ValidationUtility.ToString(dataReader["Property_Description_Code"].ToString());
     propertyDescCode.PropertyDescCodeDescription = ValidationUtility.ToString(dataReader["Property_Description_Code_Description"].ToString());
     propertyDescCode.CreateDate       = ValidationUtility.ToDateTime(dataReader["Create_Date"].ToString());
     propertyDescCode.CreateUserID     = ValidationUtility.ToString(dataReader["Create_User_ID"].ToString());
     propertyDescCode.LastUpdateDate   = ValidationUtility.ToDateTime(dataReader["Last_Update_Date"].ToString());
     propertyDescCode.LastUpdateUserID = ValidationUtility.ToString(dataReader["Last_Update_User_ID"].ToString());
     propertyDescCode.LoanProgram      = ValidationUtility.ToInteger(dataReader["Loan_Program"].ToString());
     return(propertyDescCode);
 }