public Tag MapId(MySqlDataReader reader) { Tag tag = new Tag(); tag.Id = reader.GetInt32("id"); tag.Tagname = reader.GetString("tagname"); return tag; }
public Tag Map(MySqlDataReader reader) { Tag tag = new Tag(); tag.Id = reader.GetInt32("id"); tag.Tagname = reader.GetString("tagname"); tag.TagCount = reader.IsDBNull(2) ? (int?)null : reader.GetInt32(2); return tag; }