基于Asp.net 的NewLife.Cube和基于Asp.net core的NewLife.CubeNC的区别

1.属性[ValidateAntiForgeryToken] 和[ValidateInput(false)]

2.上传文件 HttpPostedFileBase 和 IFormFile

3. Json返回

protected internal JsonResult Json(object data, JsonRequestBehavior behavior)

4.AreaRegistrationBase和AreaBase

5. protected virtual ActionResult JsonOK(Object data, Object extend = null) 和Json(code,message,data)

6.View文件.generate.cs

7.权限设置 HasPermission

8.页面用page 命名会冲突

11.Html.Partial提示可能死锁,让用Html.PartialAsync替代

12.Pair(entity和字段)和ValueTuple<IEntity,FieldItem>

13.Area注册问题,属性注册

14.数据库连接liaoliao..cenUser连接方式有问题,不能使用..号连接

原文地址:https://www.cnblogs.com/mbaymax/p/13431768.html