AddEditExtraValue() публичный статический Метод

public static AddEditExtraValue ( CmsData.CMSDataContext db, int id, string field, string value ) : void
db CmsData.CMSDataContext
id int
field string
value string
Результат void
Пример #1
0
 public void AddExtraValueCode(object query, string name, object text)
 {
     using (var db2 = NewDataContext())
         foreach (var pid in db2.PeopleQueryIds(query))
         {
             Person.AddEditExtraValue(db2, pid, name, text.ToString());
             db2.SubmitChanges();
         }
 }
Пример #2
0
        public void AddExtraValueCode(object savedQuery, string name, string text)
        {
            var list = db.PeopleQuery2(savedQuery).Select(ii => ii.PeopleId).ToList();

            foreach (var pid in list)
            {
                Person.AddEditExtraValue(db, pid, name, text);
                db.SubmitChanges();
                ResetDb();
            }
        }
Пример #3
0
        public void AddExtraValueCode(object query, string name, string text)
        {
            var list = db.PeopleQuery2(query).Select(ii => ii.PeopleId).ToList();

            foreach (var pid in list)
            {
                var db2 = NewDataContext();
                Person.AddEditExtraValue(db2, pid, name, text);
                db2.SubmitChanges();
                db2.Dispose();
            }
        }