Exemplo n.º 1
0
 public static void PopulateRealestateType(RealestateType input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId    = input.RealestateTypeId = Utilities.ToInt(reader[RoomSearch.Common.RealestateType.ColumnNames.RealestateTypeId]);
     input.Name        = Utilities.ToString(reader[RoomSearch.Common.RealestateType.ColumnNames.Name]);
     input.Description = Utilities.ToString(reader[RoomSearch.Common.RealestateType.ColumnNames.Description]);
 }
Exemplo n.º 2
0
        public static RealestateType RealestateType(System.Data.IDataReader reader)
        {
            RealestateType result = null;

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

            return(result);
        }
Exemplo n.º 3
0
        public static RealestateType RealestateType(System.Data.IDataReader reader)
        {
            RealestateType result = null;

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

            return result;
        }
Exemplo n.º 4
0
 public static void PopulateRealestateType(RealestateType input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.RealestateTypeId = Utilities.ToInt(reader[RoomSearch.Common.RealestateType.ColumnNames.RealestateTypeId]);
     input.Name = Utilities.ToString(reader[RoomSearch.Common.RealestateType.ColumnNames.Name]);
     input.Description = Utilities.ToString(reader[RoomSearch.Common.RealestateType.ColumnNames.Description]);
 }
Exemplo n.º 5
0
 public static List<RealestateType> ListRealestateType(bool insertAllItem)
 {
     List<RealestateType> result = new DataLayer().ListRealestateType();
     if (insertAllItem)
     {
         RealestateType rt = new RealestateType();
         rt.Name = "Tất cả";
         result.Insert(0, rt);
     }
     return result;
 }