Пример #1
0
    public static AuthorityEmployment_Speed CreateAuthEmploymentSpeedFromTable(authority_employment_syncspeed_rankings table)
    {
        AuthorityEmployment_Speed ret = new AuthorityEmployment_Speed();
        ret.ID = table.authority_id;
        ret.Authority = table.authority_name;
        ret.EmploymentRate = table.employment_rate;
        ret.SyncSpeed = table.sync_speed;
        ret.EmploymentRate = table.employment_rate;
        ret.SpeedRanking = table.speed_ranking;

        return ret;
    }
Пример #2
0
        public List<AuthorityEmployment_Speed> GetAuthorityEmployment_Speed()
        {
            List<AuthorityEmployment_Speed> list = new List<AuthorityEmployment_Speed>();

            using (NetaDBEntities neta = new NetaDBEntities())
            {
                var data = (from p in neta.authority_employment_syncspeed_rankings
                            select p);

                foreach (authority_employment_syncspeed_rankings item in data)
            {
                    AuthorityEmployment_Speed aes = Utils.CreateAuthEmploymentSpeedFromTable(item);
                    list.Add(aes);
                }
            }

            return list;
            }