using (var reader = command.ExecuteReader()){ DeploymentDBoardView.lstDeploymentDBoardvw = ((IObjectContextAdapter)db).ObjectContext.Translate<DeploymentDshBoardView>(reader).ToList(); reader.NextResult(); DeploymentDBoardView.lstRequestCountvw = ((IObjectContextAdapter)db).ObjectContext.Translate<RequestCountView>(reader).ToList(); reader.NextResult(); DeploymentDBoardView.lstUnittimevw = ((IObjectContextAdapter)db).ObjectContext.Translate<UnittimeView>(reader).ToList(); reader.NextResult(); DeploymentDBoardView.lstContactdetailvw = ((IObjectContextAdapter)db).ObjectContext.Translate<ContactdetailsView>(reader).ToList();}} return Ok(DeploymentDBoardView);
2.1m questions
2.1m answers
60 comments
57.0k users