/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGlbdgaccountlookupcriteria(ref DataRow row, Glbdgaccountlookupcriteria entity) { row.SetField("yr", entity.yr); row.SetField("acctyr", entity.acctyr); row.SetField("gldivno", entity.gldivno); row.SetField("gldeptno", entity.gldeptno); row.SetField("glacctno", entity.glacctno); row.SetField("glsubno", entity.glsubno); row.SetField("lookupnm", entity.lookupnm); row.SetField("revno", entity.revno); row.SetField("recordcountlimit", entity.recordcountlimit); row.SetField("userfield", entity.userfield); }
public static Glbdgaccountlookupcriteria BuildGlbdgaccountlookupcriteriaFromRow(DataRow row) { Glbdgaccountlookupcriteria entity = new Glbdgaccountlookupcriteria(); entity.yr = row.IsNull("yr") ? 0 : row.Field <int>("yr"); entity.acctyr = row.IsNull("acctyr") ? 0 : row.Field <int>("acctyr"); entity.gldivno = row.IsNull("gldivno") ? 0 : row.Field <int>("gldivno"); entity.gldeptno = row.IsNull("gldeptno") ? 0 : row.Field <int>("gldeptno"); entity.glacctno = row.IsNull("glacctno") ? 0 : row.Field <int>("glacctno"); entity.glsubno = row.IsNull("glsubno") ? 0 : row.Field <int>("glsubno"); entity.lookupnm = row.IsNull("lookupnm") ? string.Empty : row.Field <string>("lookupnm"); entity.revno = row.IsNull("revno") ? 0 : row.Field <int>("revno"); entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }