Skip to content

Instantly share code, notes, and snippets.

View harry-gordon's full-sized avatar
🚀

Harry Gordon harry-gordon

🚀
  • Freelance
  • Edinburgh, Scotland
View GitHub Profile
public class CheckForBadModelExtensionsComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.AddNotificationHandler<UmbracoApplicationStartedNotification, CheckForBadModelExtensions>();
}
}
public class CheckForBadModelExtensions : INotificationHandler<UmbracoApplicationStartedNotification>
{
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; }
}
namespace Umbraco.Cms.Web.Common.PublishedModels;
public partial class MyOrder
{
// The member's order from some database
public Order Order { get; set; }
}