Esempio n. 1
0
        private static ApplicationEntityType GetGalleryType()
        {
            var type = new ApplicationEntityType(typeof(Library));

            type.AddProperties(GetSharedProperties());
            return(type);
        }
Esempio n. 2
0
        private static ApplicationEntityType GetRoleType()
        {
            var type = new ApplicationEntityType(typeof(Role));

            type.Properties.Add(new MetaDataPropertyDefinition("Administrator")
            {
                IsStored = true, IsLocalized = true
            });
            return(type);
        }
Esempio n. 3
0
        private static ApplicationEntityType GetDocumentType()
        {
            var type = new ApplicationEntityType(typeof(DocumentItem));

            type.Properties.Add(new MetaDataPropertyDefinition("Title")
            {
                IsStored = true, IsLocalized = true
            });
            return(type);
        }
Esempio n. 4
0
        private static ApplicationEntityType GetClassificationItemTypes()
        {
            var type = new ApplicationEntityType(typeof(Label));

            type.Properties.Add(new MetaDataPropertyDefinition("Name")
            {
                IsStored = true, IsLocalized = true
            });
            return(type);
        }
        private static ApplicationEntityType GetLibraryType()
        {
            var type = new ApplicationEntityType(typeof(LibraryType));

            type.Properties.Add(new MetaDataPropertyDefinition("Title")
            {
                IsStored = true, IsLocalized = true
            });
            type.Properties.Add(new MetaDataPropertyDefinition("Content")
            {
                IsStored = true, IsLocalized = true
            });
            return(type);
        }
Esempio n. 6
0
        private static ApplicationEntityType GetKartaType()
        {
            var type = new ApplicationEntityType(typeof(Karta));

            type.Properties.Add(new MetaDataPropertyDefinition("Title")
            {
                IsStored = true, IsLocalized = true
            });
            type.Properties.Add(new MetaDataPropertyDefinition("Summary")
            {
                IsStored = true, IsLocalized = true
            });
            return(type);
        }
Esempio n. 7
0
        private static ApplicationEntityType GetPageType()
        {
            var type = new ApplicationEntityType(typeof(PageTemplate));

            type.Properties.Add(new MetaDataPropertyDefinition("Title")
            {
                IsStored = true, IsLocalized = true
            });
            type.Properties.Add(new MetaDataPropertyDefinition("Description")
            {
                IsLocalized = true
            });
            return(type);
        }
Esempio n. 8
0
        private static ApplicationEntityType GetNewsLetterType()
        {
            var type = new ApplicationEntityType(typeof(Newsletter));

            type.Properties.Add(new MetaDataPropertyDefinition("Ime")
            {
                IsStored = true, IsLocalized = true
            });
            type.Properties.Add(new MetaDataPropertyDefinition("Prezime")
            {
                IsStored = true, IsLocalized = true
            });
            type.Properties.Add(new MetaDataPropertyDefinition("Email")
            {
                IsStored = true, IsLocalized = true
            });
            return(type);
        }
Esempio n. 9
0
        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);
        }
Esempio n. 10
0
        private static ApplicationEntityType GetUserType()
        {
            var type = new ApplicationEntityType(typeof(Users));

            type.Properties.Add(new MetaDataPropertyDefinition("FirstName")
            {
                IsStored = true, IsLocalized = true
            });
            type.Properties.Add(new MetaDataPropertyDefinition("LastName")
            {
                IsStored = true, IsLocalized = true
            });
            type.Properties.Add(new MetaDataPropertyDefinition("Country")
            {
                IsLocalized = true, IsStored = true
            });
            type.Properties.Add(new MetaDataPropertyDefinition("FullName")
            {
                IsLocalized = true, IsStored = true
            });

            return(type);
        }