示例#1
0
文件: tbUser.cs 项目: tanfetch/Farm
        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);
            }
        }
示例#2
0
 private void detach_Purview(Purview entity)
 {
     this.SendPropertyChanging();
     entity.tbUser = null;
 }
示例#3
0
 private void attach_Purview(Purview entity)
 {
     this.SendPropertyChanging();
     entity.tbUser = this;
 }
示例#4
0
 partial void DeletePurview(Purview instance);
示例#5
0
 partial void UpdatePurview(Purview instance);
示例#6
0
 partial void InsertPurview(Purview instance);