Beispiel #1
0
        public void Update(N_Category c)
        {
            var result = db.N_Category.Where(x => x.id == c.id);

            foreach (var item in result)
            {
                item.enName = c.enName;
                item.chName = c.chName;
            }

            db.SubmitChanges();
        }
Beispiel #2
0
 public void Add(N_Category c)
 {
     db.N_Category.InsertOnSubmit(c);
     db.SubmitChanges();
 }
Beispiel #3
0
 partial void DeleteN_Category(N_Category instance);
Beispiel #4
0
 partial void UpdateN_Category(N_Category instance);
Beispiel #5
0
 partial void InsertN_Category(N_Category instance);