Exemple #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();
            }
        }
Exemple #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()));
        }
Exemple #3
0
 private void detach_SONGs(SONG entity)
 {
     this.SendPropertyChanging();
     entity.SINGER = null;
 }
Exemple #4
0
 private void attach_SONGs(SONG entity)
 {
     this.SendPropertyChanging();
     entity.SINGER = this;
 }
Exemple #5
0
 private void attach_SONGs(SONG entity)
 {
     this.SendPropertyChanging();
     entity.EMOTION = this;
 }
Exemple #6
0
 partial void DeleteSONG(SONG instance);
Exemple #7
0
 partial void UpdateSONG(SONG instance);
Exemple #8
0
 partial void InsertSONG(SONG instance);