我的Quotation模型包含一个Customer类型的属性。当我使用以下代码从上下文中获取报价时,我希望使用automapper填充Customer属性: var quotation = context.Quotation.Include("Customer")已填充,但它没有映射到quotationDetailsViewModel中的相应字段。下面是我的model和viewmodel类: public class Quotation public long Id {ge
我很难将数据库实体映射到WPF模型并返回。我的应用程序使用WPF模型,它实现了INotifyPropertyChanged接口。每次我需要将它存储在数据库中时,我都需要将我的WPF模型映射到数据库模型。为此,我创建了一个复杂的映射器,但它最终具有周期依赖性。如何有效地将WPF模型映射到数据库模型?我的数据库模型:{ public Guid UserId { get; set; }
public List<DbSeries我