public static Glinquiryaccountcriteria BuildGlinquiryaccountcriteriaFromRow(DataRow row) { Glinquiryaccountcriteria entity = new Glinquiryaccountcriteria(); entity.glno = row.IsNull("glno") ? string.Empty : row.Field <string>("glno"); entity.glyear = row.IsNull("glyear") ? 0 : row.Field <int>("glyear"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGlinquiryaccountcriteria(ref DataRow row, Glinquiryaccountcriteria entity) { row.SetField("glno", entity.glno); row.SetField("glyear", entity.glyear); row.SetField("userfield", entity.userfield); }