using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using PetaPoco; using Sony.Filtr.Contracts.Definitions; namespace Sony.Filtr.ContentManagement.Data { [TableName("tblContentPage")] [PrimaryKey("Id", autoIncrement = true)] [ExplicitColumns] public class ContentPage { [Column("Id")] public int Id { get; set; } [Column("PageType")] public string PageType { get; set; } [Column("PageKey")] public string PageKey { get; set; } [Column("PageName")] public string PageName { get; set; } [Column("ApplicationId")] public int ApplicationId { get; set; } [Column("Service")] [JsonConverter(typeof(StringEnumConverter))] public ServiceType Service { get; set; } public List ContentBlocks { get; set; } } }