protected override void OnInitialized() { main = Mapper.Map <dto往来>(PinhuaContext.tb_往来表.FirstOrDefault(p => p.RecordId == RecordId)); }
protected override void OnInitialized() { main = Mapper.Map <dto往来>(PinhuaContext.tb_往来表.AsNoTracking().FirstOrDefault(m => m.RecordId == RecordId)); }