예제 #1
0
 public FriendshipRemovedEvent(EventsFriendshipRemoved f)
 {
     this.mEventId = f.EventID;
     this.mFriendRelationId = f.FriendRelationID;
     this.mUser1 = f.User1;
     this.mUser2 = f.User2;
     this.mEventTime = f.EventTime;
 }
예제 #2
0
        public override void save()
        {
            EventsFriendshipRemoved e = new EventsFriendshipRemoved();
            e.FriendRelationID = this.mFriendRelationId;
            e.User1 = this.mUser1;
            e.User2 = this.mUser2;
            e.EventTime = this.mEventTime;

            _db.EventsFriendshipRemoveds.InsertOnSubmit(e);
            _db.SubmitChanges();

            this.mEventId = e.EventID;
        }