The type 'BM.ERP.Hrm.Rlb.BusinessType' and the type 'BM.ERP.OaSFTempStatistics.Enum.BusinessType' both have the same simple name of 'BusinessType' and so cannot be used in the same model. All types in a given model must have unique simple names. Use 'NotMappedAttribute' or call Ignore in the Code First fluent API to explicitly exclude a property or type from the model.
--这个问题就是枚举类名称重复,虽然命名空间不一样,但是在获取枚举中文名称没办法确认是哪一个枚举类值对应的中文名称(其中一个枚举名称改一下就好了)
The type ‘BM.ERP.Hrm.Rlb.BusinessType‘ and the type ‘BM.ERP.OaSFTempStatistics.Enum.BusinessType‘ bo
于 2022-05-17 15:01:10 首次发布