摘要:
添加了自定义的ApplicationDbContext 和ApplicationUser ,并添加了Identity认证后,会出现 InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore. 阅读全文
摘要:
有两种方法可以为类型提供格式化字符串输出: 1、让类型继承IFormattable接口,实现IFormattable接口的ToString方法,需要开发者可以预见类型在格式化方面的要求。 调用输出未重写Tostring方法: 1 Person person = new Person 2 { 3 ID 阅读全文