dommel

How to use Dapper.FluentMap.Dommel.Mapping for multiple Ids

早过忘川 提交于 2019-12-12 05:18:13
问题 I'm having a problem using Dapper.FluentMap.Dommel.Mapping . When I log the mapping, the system identifies that a property with the name ID already exists and throws the exception. But mapped Id belongs to another object. How can I solve this problem? BaseEntity.cs public abstract class BaseEntity { public virtual long Id { get; set; } } Sistema.cs public class Sistema : BaseEntity { public override long Id { get; set; } public string Nome { get; set; } } Arquivo.cs public class Arquivo :