public static Userfieldsdefncriteria BuildUserfieldsdefncriteriaFromRow(DataRow row) { Userfieldsdefncriteria entity = new Userfieldsdefncriteria(); entity.tablename = row.IsNull("tablename") ? string.Empty : row.Field <string>("tablename"); entity.customfield = row.IsNull("customfield") ? string.Empty : row.Field <string>("customfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromUserfieldsdefncriteria(ref DataRow row, Userfieldsdefncriteria entity) { row.SetField("tablename", entity.tablename); row.SetField("customfield", entity.customfield); }