public static Match Get(SafeDataReader dr) { //Util.CheckReadAccess(); Match item = new Match(); item.Populate(dr); item.MarkOld(); return item; }
public static Match FromInfo(TennisObjects.Info.Match from) { //Util.CheckReadAccess(); Match item = new Match(); item._EventID = from.EventID; item._ID = from.ID; item._LoserID = from.LoserID; item._MatchDate = from.MatchDate; item._Score.FromInfo(from.Score); //item.Score = from.Score; item._WinnerID = from.WinnerID; item.MarkOld(); item.ValidationRules.CheckRules(); return item; }