/// <summary>
        /// 获取Service层的类实例,在没有写配置文件时使用
        /// </summary>
        /// <typeparam name="T">当前传入的类名</typeparam>
        /// <returns>类实体</returns>
        public static T CreateInstance<T>() where T : new()
        {
            return new T();
        }

相关文章:

  • 2021-12-01
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案