Beispiel #1
0
 public static void PopulateComponent(Component input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.ComponentId = Utilities.ToInt(reader[Mimosa.Apartment.Common.Component.ColumnNames.ComponentId]);
     input.Name = Utilities.ToString(reader[Mimosa.Apartment.Common.Component.ColumnNames.Name]);
 }
Beispiel #2
0
        public static Component Component(System.Data.IDataReader reader)
        {
            Component result = null;

            if (null != reader && reader.Read())
            {
                result = new Component();
                PopulateComponent(result, reader);
            }

            return result;
        }