Beispiel #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);
        }
Beispiel #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;
        }
Beispiel #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]);
 }
Beispiel #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]);
 }