public static SpearmansRank CreateCorrelationsTable(spearmans_ranks table) { SpearmansRank ret = new SpearmansRank(); ret.CorrelationID = table.correlation_id; ret.CorrelationName = table.correlation_name; ret.SpearmansRho = table.spearmans_rho; return ret; }
public List<SpearmansRank> CreateSpearmansRankTable() { List<SpearmansRank> list = new List<SpearmansRank>(); using (NetaDBEntities neta = new NetaDBEntities()) { var myData = (from p in neta.spearmans_ranks select p); foreach (spearmans_ranks item in myData) { SpearmansRank sr = Utils.CreateCorrelationsTable(item); list.Add(sr); } } return list; }