示例#1
0
文件: Utils.cs 项目: ConorNeueda/NETA
    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;
    }
示例#2
0
        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;
        }