//---------------------------------------------------------------------------------------------
// This file was AUTO-GENERATED by "ASP.NET Views" Xomega.Net generator.
//
// Manual CHANGES to this file WILL BE LOST when the code is regenerated.
//---------------------------------------------------------------------------------------------

using AdventureWorks.Client.ViewModels;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Web.UI.WebControls;
using Xomega.Framework.Web;

namespace AdventureWorks.Client.Web
{
    public partial class SalesOrderDetailView : WebDetailsView
    {
        protected SalesOrderDetailViewModel VM => Model as SalesOrderDetailViewModel;

        public SalesOrderDetailView()
        {
            Model = ServiceProvider.GetService<SalesOrderDetailViewModel>();
        }

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            if (VM == null) return;
        }
    }
}