/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromVaheadlaborresults(ref DataRow row, Vaheadlaborresults entity) { row.SetField("vano", entity.vano); row.SetField("vasuf", entity.vasuf); row.SetField("pndintrnactamt", entity.pndintrnactamt); row.SetField("pndintrnacthrs", entity.pndintrnacthrs); row.SetField("pndintrnactsecs", entity.pndintrnactsecs); row.SetField("pndintrnestamt", entity.pndintrnestamt); row.SetField("pndintrnesthrs", entity.pndintrnesthrs); row.SetField("pndintrnestsecs", entity.pndintrnestsecs); }
public static Vaheadlaborresults BuildVaheadlaborresultsFromRow(DataRow row) { Vaheadlaborresults entity = new Vaheadlaborresults(); entity.vano = row.IsNull("vano") ? 0 : row.Field <int>("vano"); entity.vasuf = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf"); entity.pndintrnactamt = row.IsNull("pndintrnactamt") ? decimal.Zero : row.Field <decimal>("pndintrnactamt"); entity.pndintrnacthrs = row.IsNull("pndintrnacthrs") ? string.Empty : row.Field <string>("pndintrnacthrs"); entity.pndintrnactsecs = row.IsNull("pndintrnactsecs") ? 0 : row.Field <int>("pndintrnactsecs"); entity.pndintrnestamt = row.IsNull("pndintrnestamt") ? decimal.Zero : row.Field <decimal>("pndintrnestamt"); entity.pndintrnesthrs = row.IsNull("pndintrnesthrs") ? string.Empty : row.Field <string>("pndintrnesthrs"); entity.pndintrnestsecs = row.IsNull("pndintrnestsecs") ? 0 : row.Field <int>("pndintrnestsecs"); return(entity); }