public static PostType PostType(System.Data.IDataReader reader) { PostType result = null; if (null != reader && reader.Read()) { result = new PostType(); PopulatePostType(result, reader); } return(result); }
public static PostType PostType(System.Data.IDataReader reader) { PostType result = null; if (null != reader && reader.Read()) { result = new PostType(); PopulatePostType(result, reader); } return result; }
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]); }