Example #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();
        }
Example #2
0
 public void Add(N_Category c)
 {
     db.N_Category.InsertOnSubmit(c);
     db.SubmitChanges();
 }
Example #3
0
 partial void DeleteN_Category(N_Category instance);
Example #4
0
 partial void UpdateN_Category(N_Category instance);
Example #5
0
 partial void InsertN_Category(N_Category instance);