Exemple #1
0
        public static AttributionType Build(ITypeReader reader)
        {
            AttributionType attributionType = new AttributionType();

            attributionType.AttributionTypeId   = reader.GetInt(Columns.ATTRIBUTIONTYPEID);
            attributionType.AttributionTypeName = reader.GetString(Columns.ATTRIBUTIONTYPENAME);

            return(attributionType);
        }
Exemple #2
0
        public static AttributionType Build(DataRow row)
        {
            AttributionType attributionType = new AttributionType();

            attributionType.AttributionTypeId   = Convert.ToInt32(row[Columns.ATTRIBUTIONTYPEID].ToString());
            attributionType.AttributionTypeName = row[Columns.ATTRIBUTIONTYPENAME].ToString();
            attributionType.IsSelected          = false;

            return(attributionType);
        }