报错信息:There is already an open DataReader associated with this Connection which must be closed first 缓解的方案:在实例化database的时候利用线程独立实例化,每个线程一个单独的database实例 [ThreadStatic] private static Database _threadInstance = null; protected Database DB = CreateDataba…
原因是因为我在写实体类的时候没有为实体类中的属性声明一个主键,即用[key]特性标注在属性上,这样DbContext才能为我们在数据库上找到对应的主键 using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; using System; namespace Feng.Entity { [Serializable] [Table("dict_sample"…
问题描述: Container killed by the ApplicationMaster. Container killed on request. Exit code is 143 Container exited with a non-zero exit code 143 21/10/10 08:51:52 INFO mapreduce.Job: map 100% reduce 0% 21/10/10 08:51:53 INFO mapreduce.Job: Job job_16338…