摘要:
问题背景: 在示例项目中,使用Antiforgery预防下CSRF攻击,做好例子后,想移植到正式环境使用,却发现相同的代码,却有不同的结果,测试环境一切OK,正式环境报错如下: System.InvalidOperationException: No service for type 'Micros 阅读全文
摘要:
所需的公共类: public class SysUser { [Key] public int Id { get; set; } public string Name { get; set; } public DateTimeOffset? CreateTime { get; set; } } 方式 阅读全文