using System; using System.Linq; using MySql.Data.MySqlClient; using PetaPoco; namespace Sony.Filtr.Contracts.Entities { [Serializable] [TableName("tblSpotifyUserCountry")] [PrimaryKey("intId", autoIncrement = true)] public class SpotifyUserCountry { public const string Version = "1"; public SpotifyUserCountry() { } public SpotifyUserCountry(MySqlDataReader reader) { ID = reader.GetInt32(0); SpotifyUserName = reader.GetString(1); CountryCode = reader.GetString(2); } [Column("intId")] public int ID { get; set; } [Column("strUserName")] public string SpotifyUserName { get; set; } [Column("strCountryCode")] public string CountryCode { get; set; } } }