Skip to content

Commit

Permalink
Merge branch 'kentico-michaelb-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
petrsvihlik committed Oct 26, 2020
2 parents b91e38e + 070d7dd commit 99bd221
Show file tree
Hide file tree
Showing 44 changed files with 653 additions and 304 deletions.
2 changes: 1 addition & 1 deletion kontent-sample-app-razorpages/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"kentico.kontent.modelgenerator": {
"version": "5.0.0-beta2",
"version": "6.0.0",
"commands": [
"KontentModelGenerator"
]
Expand Down
45 changes: 45 additions & 0 deletions kontent-sample-app-razorpages/Models/AboutUs.Generated.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace kontent_sample_app_razorpages.Models
{
public partial class AboutUs
{
public const string Codename = "about_us";
public const string FactsCodename = "facts";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string SitemapCodename = "sitemap";
public const string UrlPatternCodename = "url_pattern";

public IEnumerable<object> Facts { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public IContentItemSystemAttributes System { get; set; }
public string UrlPattern { get; set; }
}
}
35 changes: 0 additions & 35 deletions kontent-sample-app-razorpages/Models/AboutUs.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;
Expand All @@ -12,34 +6,5 @@ namespace kontent_sample_app_razorpages.Models
{
public partial class AboutUs
{
public const string Codename = "about_us";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string UrlPatternCodename = "url_pattern";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string SitemapCodename = "sitemap";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string FactsCodename = "facts";

public string MetadataOgDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataTwitterSite { get; set; }
public string UrlPattern { get; set; }
public IEnumerable<Asset> MetadataTwitterImage { get; set; }
public IEnumerable<TaxonomyTerm> Sitemap { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterTitle { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<Asset> MetadataOgImage { get; set; }
public IEnumerable<FactAboutUs> Facts { get; set; }
public ContentItemSystemAttributes System { get; set; }
}
}
57 changes: 57 additions & 0 deletions kontent-sample-app-razorpages/Models/Accessory.Generated.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace kontent_sample_app_razorpages.Models
{
public partial class Accessory
{
public const string Codename = "accessory";
public const string ImageCodename = "image";
public const string LongDescriptionCodename = "long_description";
public const string ManufacturerCodename = "manufacturer";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string PriceCodename = "price";
public const string ProductNameCodename = "product_name";
public const string ProductStatusCodename = "product_status";
public const string ShortDescriptionCodename = "short_description";
public const string SitemapCodename = "sitemap";
public const string UrlPatternCodename = "url_pattern";

public IEnumerable<IAsset> Image { get; set; }
public IRichTextContent LongDescription { get; set; }
public string Manufacturer { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public decimal? Price { get; set; }
public string ProductName { get; set; }
public IEnumerable<ITaxonomyTerm> ProductStatus { get; set; }
public IRichTextContent ShortDescription { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public IContentItemSystemAttributes System { get; set; }
public string UrlPattern { get; set; }
}
}
10 changes: 10 additions & 0 deletions kontent-sample-app-razorpages/Models/Accessory.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace kontent_sample_app_razorpages.Models
{
public partial class Accessory
{
}
}
61 changes: 61 additions & 0 deletions kontent-sample-app-razorpages/Models/Article.Generated.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace kontent_sample_app_razorpages.Models
{
public partial class Article
{
public const string Codename = "article";
public const string BodyCopyCodename = "body_copy";
public const string MetaDescriptionCodename = "meta_description";
public const string MetaKeywordsCodename = "meta_keywords";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string PersonasCodename = "personas";
public const string PostDateCodename = "post_date";
public const string RelatedArticlesCodename = "related_articles";
public const string SitemapCodename = "sitemap";
public const string SummaryCodename = "summary";
public const string TeaserImageCodename = "teaser_image";
public const string TitleCodename = "title";
public const string UrlPatternCodename = "url_pattern";

public IRichTextContent BodyCopy { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public string MetaDescription { get; set; }
public string MetaKeywords { get; set; }
public IEnumerable<ITaxonomyTerm> Personas { get; set; }
public DateTime? PostDate { get; set; }
public IEnumerable<object> RelatedArticles { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public string Summary { get; set; }
public IContentItemSystemAttributes System { get; set; }
public IEnumerable<IAsset> TeaserImage { get; set; }
public string Title { get; set; }
public string UrlPattern { get; set; }
}
}
56 changes: 3 additions & 53 deletions kontent-sample-app-razorpages/Models/Article.cs
Original file line number Diff line number Diff line change
@@ -1,63 +1,13 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Kentico.Kontent.Delivery.Abstractions;
using Newtonsoft.Json;

namespace kontent_sample_app_razorpages.Models
{
public partial class Article
{
public const string Codename = "article";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string PersonasCodename = "personas";
public const string BodyCopyCodename = "body_copy";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string PostDateCodename = "post_date";
public const string MetaKeywordsCodename = "meta_keywords";
public const string TeaserImageCodename = "teaser_image";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string TitleCodename = "title";
public const string SummaryCodename = "summary";
public const string SitemapCodename = "sitemap";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetaDescriptionCodename = "meta_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string RelatedArticlesCodename = "related_articles";
public const string UrlPatternCodename = "url_pattern";

public string MetadataOgDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public IEnumerable<TaxonomyTerm> Personas { get; set; }
public string BodyCopy { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataTwitterSite { get; set; }
[DisplayFormat(DataFormatString = "{0:MMM. dd, yyyy}")]
public DateTime? PostDate { get; set; }
public string MetaKeywords { get; set; }
public IEnumerable<Asset> TeaserImage { get; set; }
public IEnumerable<Asset> MetadataTwitterImage { get; set; }
public string MetadataTwitterCreator { get; set; }
public string Title { get; set; }
public string Summary { get; set; }
public IEnumerable<TaxonomyTerm> Sitemap { get; set; }
public string MetadataTwitterTitle { get; set; }
public string MetadataTwitterDescription { get; set; }
public string MetaDescription { get; set; }
public IEnumerable<Asset> MetadataOgImage { get; set; }
public IEnumerable<Article> RelatedArticles { get; set; }
public string UrlPattern { get; set; }
public ContentItemSystemAttributes System { get; set; }
[JsonProperty("body_copy")]
public string BodyCopyString { get; set; }
}
}
57 changes: 57 additions & 0 deletions kontent-sample-app-razorpages/Models/Brewer.Generated.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace kontent_sample_app_razorpages.Models
{
public partial class Brewer
{
public const string Codename = "brewer";
public const string ImageCodename = "image";
public const string LongDescriptionCodename = "long_description";
public const string ManufacturerCodename = "manufacturer";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string PriceCodename = "price";
public const string ProductNameCodename = "product_name";
public const string ProductStatusCodename = "product_status";
public const string ShortDescriptionCodename = "short_description";
public const string SitemapCodename = "sitemap";
public const string UrlPatternCodename = "url_pattern";

public IEnumerable<IAsset> Image { get; set; }
public IRichTextContent LongDescription { get; set; }
public IEnumerable<ITaxonomyTerm> Manufacturer { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public decimal? Price { get; set; }
public string ProductName { get; set; }
public IEnumerable<ITaxonomyTerm> ProductStatus { get; set; }
public IRichTextContent ShortDescription { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public IContentItemSystemAttributes System { get; set; }
public string UrlPattern { get; set; }
}
}
10 changes: 10 additions & 0 deletions kontent-sample-app-razorpages/Models/Brewer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace kontent_sample_app_razorpages.Models
{
public partial class Brewer
{
}
}
Loading

0 comments on commit 99bd221

Please sign in to comment.