ActivEarth.DAO.ContestDAO.GetStatisticFromContestId C# (CSharp) Метод

GetStatisticFromContestId() публичный статический Метод

Lookup for the statistic being tracked by a specific challenge.
public static GetStatisticFromContestId ( int contestId ) : Statistic
contestId int ID of the contest to query.
Результат Statistic
        public static Statistic GetStatisticFromContestId(int contestId)
        {
            using (SqlConnection connection = ConnectionManager.GetConnection())
            {
                var data = new ActivEarthDataProvidersDataContext(connection);
                return (Statistic)(from c in data.ContestDataProviders
                                   where c.id == contestId
                                   select c.statistic).FirstOrDefault();
            }
        }