/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPorrarlinemsgcriteria(ref DataRow row, Porrarlinemsgcriteria entity) { row.SetField("leveltype", entity.leveltype); row.SetField("reportno", entity.reportno); row.SetField("lineno", entity.lineno); row.SetField("seqno", entity.seqno); }
public static Porrarlinemsgcriteria BuildPorrarlinemsgcriteriaFromRow(DataRow row) { Porrarlinemsgcriteria entity = new Porrarlinemsgcriteria(); entity.leveltype = row.IsNull("leveltype") ? string.Empty : row.Field <string>("leveltype"); entity.reportno = row.IsNull("reportno") ? 0 : row.Field <int>("reportno"); entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno"); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); return(entity); }