void Build(int UID) { var _db = new PangyaEntities(); foreach (var info in _db.ProcGetCard(UID)) { var card = new PlayerCardData() { CardIndex = (uint)info.CARD_IDX, CardTypeID = (uint)info.CARD_TYPEID, CardQuantity = (uint)info.QTY, CardIsValid = (byte)info.VALID, CardNeedUpdate = false }; this.Add(card); } }