AddEditExtraData() public static method

public static AddEditExtraData ( CmsData.CMSDataContext db, int id, string field, string value, System.DateTime dt = null ) : void
db CmsData.CMSDataContext
id int
field string
value string
dt System.DateTime
return void
コード例 #1
0
 public void AddExtraValueText(object query, string name, object text)
 {
     using (var db2 = NewDataContext())
         foreach (var pid in db2.PeopleQueryIds(query))
         {
             Person.AddEditExtraData(db2, pid, name, text.ToString());
             db2.SubmitChanges();
         }
 }
コード例 #2
0
        public void AddExtraValueText(object savedQuery, string name, string text)
        {
            var list = db.PeopleQuery2(savedQuery).Select(ii => ii.PeopleId).ToList();

            foreach (var pid in list)
            {
                Person.AddEditExtraData(db, pid, name, text);
                db.SubmitChanges();
                ResetDb();
            }
        }
コード例 #3
0
        public void AddExtraValueText(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.AddEditExtraData(db2, pid, name, text);
                db2.SubmitChanges();
                db2.Dispose();
            }
        }