Ejemplo n.º 1
0
        public static PostType PostType(System.Data.IDataReader reader)
        {
            PostType result = null;

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

            return(result);
        }
Ejemplo n.º 2
0
        public static PostType PostType(System.Data.IDataReader reader)
        {
            PostType result = null;

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

            return result;
        }
Ejemplo n.º 3
0
 public static void PopulatePostType(PostType input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.PostTypeId = Utilities.ToInt(reader[RoomSearch.Common.PostType.ColumnNames.PostTypeId]);
     input.Name = Utilities.ToString(reader[RoomSearch.Common.PostType.ColumnNames.Name]);
 }
Ejemplo n.º 4
0
 public static void PopulatePostType(PostType input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.PostTypeId = Utilities.ToInt(reader[RoomSearch.Common.PostType.ColumnNames.PostTypeId]);
     input.Name     = Utilities.ToString(reader[RoomSearch.Common.PostType.ColumnNames.Name]);
 }