Ejemplo n.º 1
0
        public List <RSDataType> getListDataTypes()
        {
            SqlDataReader     reader       = executeReader("select [DataType],[Validation],[Guide],[DefaultValue] from [RS].[DATATYPE_TBL]", null);
            List <RSDataType> lstDataTypes = new List <RSDataType>();

            while (reader.Read())
            {
                RSDataType type = new RSDataType();
                type.DataType     = reader.GetString(reader.GetOrdinal("DataType"));
                type.Validation   = reader.GetString(reader.GetOrdinal("Validation"));
                type.Guide        = reader.GetString(reader.GetOrdinal("Guide"));
                type.DefaultValue = reader.GetString(reader.GetOrdinal("DefaultValue"));;
                lstDataTypes.Add(type);
            }
            reader.Close();
            return(lstDataTypes);
        }
Ejemplo n.º 2
0
 public List<RSDataType> getListDataTypes()
 {
     SqlDataReader reader = executeReader("select [DataType],[Validation],[Guide],[DefaultValue] from [RS].[DATATYPE_TBL]", null);
     List<RSDataType> lstDataTypes = new List<RSDataType>();
     while (reader.Read())
     {
         RSDataType type = new RSDataType();
         type.DataType = reader.GetString(reader.GetOrdinal("DataType"));
         type.Validation = reader.GetString(reader.GetOrdinal("Validation"));
         type.Guide = reader.GetString(reader.GetOrdinal("Guide"));
         type.DefaultValue = reader.GetString(reader.GetOrdinal("DefaultValue")); ;
         lstDataTypes.Add(type);
     }
     reader.Close();
     return lstDataTypes;
 }