private static ApplicationEntityType GetGalleryType() { var type = new ApplicationEntityType(typeof(Library)); type.AddProperties(GetSharedProperties()); return(type); }
private static ApplicationEntityType GetMediaItemType() { var type = new ApplicationEntityType(typeof(MediaItem)); type.AddProperties(GetSharedProperties()); type.Properties.Add(new MetaDataPropertyDefinition("ExternalID") { IsStored = false }); type.Properties.Add(new MetaDataPropertyDefinition("ScribdID") { IsStored = false, Indexed = false, IsAnalyzed = false }); type.Properties.Add(new MetaDataPropertyDefinition("ExternalTitle") { IsStored = false }); type.Properties.Add(new MetaDataPropertyDefinition("Thumb") { Indexed = false }); return(type); }