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