Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromApeiinvoicetotals(ref DataRow row, Apeiinvoicetotals entity)
 {
     row.SetField("groupnm", entity.groupnm);
     row.SetField("createddt", entity.createddt);
     row.SetField("groupseqno", entity.groupseqno);
     row.SetField("glproof", entity.glproof);
     row.SetField("poproof", entity.poproof);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Apeiinvoicetotals BuildApeiinvoicetotalsFromRow(DataRow row)
        {
            Apeiinvoicetotals entity = new Apeiinvoicetotals();

            entity.groupnm    = row.IsNull("groupnm") ? string.Empty : row.Field <string>("groupnm");
            entity.createddt  = row.Field <DateTime?>("createddt");
            entity.groupseqno = row.IsNull("groupseqno") ? 0 : row.Field <int>("groupseqno");
            entity.glproof    = row.IsNull("glproof") ? decimal.Zero : row.Field <decimal>("glproof");
            entity.poproof    = row.IsNull("poproof") ? decimal.Zero : row.Field <decimal>("poproof");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }