我正在尝试将MiniProfiler用于使用Oracle DB的MVC应用程序.这是我的global.asax.
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
WebApiConfig.Register(GlobalConfiguration.Configuration);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
MiniProfiler.Start(); //or any number of other checks, up to you
}
protected void Application_PreRequestHandlerExecute(object sender, EventArgs e)
{
DevExpressHelper.Theme = "Metropolis";
MiniProfiler.Stop(); //stop as early as you can, even earlier with MvcMiniProfiler.MiniProfiler.Stop(discardResults: true);
}
Run Code Online (Sandbox Code Playgroud)
申请开始时,我得到:
"请求在此上下文中不可用"
我正在研究一个项目,现在我正在使用asp.net MVC5.总而言之,这个应用程序有
为我创建CRUD屏幕需要很长时间.购买系统也只有一个批准系统.
今天,我正在寻找LightSwitch并看一些视频.
我的问题:
我想尝试在LightSwitch中开发项目并下载Visual Studio 2013社区版,它具有与Professional相同的功能,但没有LightSwitch项目模板.我需要单独下载吗?
问候
我有两个模型如下.
public class Bill
{
public int Id { get; set; }
public string InvoiceNumber { get; set; }
public Int64 Amount { get; set; }
public int? NewPaymentId { get; set; }
public virtual NewPayment RelPayment { get; set; }
}
public class NewPayment
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LstName { get; set; }
public DateTime PaymentDate { get; set; }
public Int64 ProvisionNumber { get; set; …Run Code Online (Sandbox Code Playgroud)