This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CheckForBadModelExtensionsComposer : IComposer | |
| { | |
| public void Compose(IUmbracoBuilder builder) | |
| { | |
| builder.AddNotificationHandler<UmbracoApplicationStartedNotification, CheckForBadModelExtensions>(); | |
| } | |
| } | |
| public class CheckForBadModelExtensions : INotificationHandler<UmbracoApplicationStartedNotification> | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MyOrderViewModel : MyOrder | |
| { | |
| public MyOrderViewModel(IPublishedContent content, IPublishedValueFallback publishedValueFallback) : base(content, publishedValueFallback) | |
| { | |
| } | |
| // The member's order from some database | |
| public Order Order { get; set; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Umbraco.Cms.Web.Common.PublishedModels; | |
| public partial class MyOrder | |
| { | |
| // The member's order from some database | |
| public Order Order { get; set; } | |
| } |