Example #1
0
        public void setvote(int musicid, int vote)
        {
            using (var musicct = new DataClassesDataContext())
            {
                SONG song = musicct.SONGs.Single(p => p.SONGID == musicid);
                song.VOTE += vote;

                musicct.SubmitChanges();
            }
        }
Example #2
0
        public decimal getvote(int musicid)
        {
            decimal?a;

            using (var musicct = new DataClassesDataContext())
            {
                SONG song = musicct.SONGs.Single(p => p.SONGID == musicid);
                a = song.VOTE;
            }
            return(decimal.Parse(a.ToString()));
        }
Example #3
0
 private void detach_SONGs(SONG entity)
 {
     this.SendPropertyChanging();
     entity.SINGER = null;
 }
Example #4
0
 private void attach_SONGs(SONG entity)
 {
     this.SendPropertyChanging();
     entity.SINGER = this;
 }
Example #5
0
 private void attach_SONGs(SONG entity)
 {
     this.SendPropertyChanging();
     entity.EMOTION = this;
 }
Example #6
0
 partial void DeleteSONG(SONG instance);
Example #7
0
 partial void UpdateSONG(SONG instance);
Example #8
0
 partial void InsertSONG(SONG instance);