系列目录

系统需要越来越自动化,我们需要引入日志记录和异常捕获
管理员的操作记录需要被记录,看出哪些模块是频繁操作,分析哪些是不必要的功能,哪些是需要被优化的。
系统的异常需要被捕获,而不是将系统出错显示出来给用户就不了了知。我们需要异常日志不断改进系统。
我们老说用户,我们还没有用户权限的表,所以我们在Home中先加入一个虚拟用户吧!

首先我们创建一个用户类AccountModel放在App.Models下的Sys文件夹下

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace App.Models.Sys
{
    public class AccountModel
    {
        public string Id { get; set; }
        public string TrueName { get; set; }
    }
}
AccountModel.cs

相关文章:

  • 2022-12-23
  • 2021-09-28
  • 2021-11-12
  • 2021-04-04
  • 2021-07-13
  • 2022-01-17
  • 2022-01-05
猜你喜欢
  • 2021-06-06
  • 2021-10-14
  • 2021-09-07
  • 2022-01-20
  • 2021-11-24
相关资源
相似解决方案