【发布时间】:2018-08-31 13:14:10
【问题描述】:
我正在使用 asp.net mvc 应用程序,我想设置用户请求的提醒, 在startup.cs 类中我配置了hangfire。但它给出了异常,不支持关键字:'元数据'。当阅读这行代码 GlobalConfiguration.Configuration .UseSqlServerStorage("DbEntities");
using Hangfire;
using Hangfire.SqlServer;
using Microsoft.Owin;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using UKC.Data.Infrastructure;
using UKC.UI.Helper;
[assembly: OwinStartup(typeof(UKC.UI.App_Start.Startup))]
namespace UKC.UI.App_Start
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
GlobalConfiguration.Configuration
.UseSqlServerStorage("DbEntities");
}
}
}
【问题讨论】:
标签: c# asp.net-mvc hangfire