Esempio n. 1
0
        static public void UpdatePurview(int ID, string pur)
        {
            var db = new BaseRepository();

            db.Delete <Purview>(p => p.userID == ID);

            if (string.IsNullOrEmpty(pur))
            {
                return;
            }

            var areaID = pur.Split(',');

            foreach (string n in areaID)
            {
                Purview purview = new Purview();
                purview.userID = ID;
                purview.areaID = Int32.Parse(n);

                db.Inset <Purview>(purview);
            }
        }
Esempio n. 2
0
 private void detach_Purview(Purview entity)
 {
     this.SendPropertyChanging();
     entity.tbUser = null;
 }
Esempio n. 3
0
 private void attach_Purview(Purview entity)
 {
     this.SendPropertyChanging();
     entity.tbUser = this;
 }
Esempio n. 4
0
 partial void DeletePurview(Purview instance);
Esempio n. 5
0
 partial void UpdatePurview(Purview instance);
Esempio n. 6
0
 partial void InsertPurview(Purview instance);