Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCustpmtsdisplayresults(ref DataRow row, Custpmtsdisplayresults entity)
 {
     row.SetField("currbal", entity.currbal);
     row.SetField("pastbal", entity.pastbal);
     row.SetField("pastpct", entity.pastpct);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Custpmtsdisplayresults BuildCustpmtsdisplayresultsFromRow(DataRow row)
        {
            Custpmtsdisplayresults entity = new Custpmtsdisplayresults();

            entity.currbal   = row.IsNull("currbal") ? decimal.Zero : row.Field <decimal>("currbal");
            entity.pastbal   = row.IsNull("pastbal") ? decimal.Zero : row.Field <decimal>("pastbal");
            entity.pastpct   = row.IsNull("pastpct") ? decimal.Zero : row.Field <decimal>("pastpct");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }