v9.8.2018.0605 由DataReader直接映射实体列表,以支持netstandard的MySql和SQLite,且提升性能
大石头
authored at
2018-06-05 00:45:23
X
using NewLife.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using XCode.Membership;
namespace NewLife.Cube.AdminMobile.Controllers
{
/// <summary>移动首页</summary>
[DisplayName("移动首页")]
public class IndexController : ControllerBaseX
{
/// <summary>首页</summary>
/// <returns></returns>
[EntityAuthorize(PermissionFlags.Detail)]
//[AllowAnonymous]
public ActionResult Index()
{
ViewBag.User = ManageProvider.User;
ViewBag.Config = SysConfig.Current;
// 工作台页面
var startPage = Request["page"];
if (startPage.IsNullOrEmpty()) startPage = Setting.Current.StartPage;
ViewBag.Main = startPage;
return View();
}
}
}
|