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 | |
리턴 | void |
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(); } }
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(); } }
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(); } }