Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArscavgdaystopayresults(ref DataRow row, Arscavgdaystopayresults entity)
 {
     row.SetField("newavgpaydays", entity.newavgpaydays);
     row.SetField("newnopays", entity.newnopays);
     row.SetField("lfoundrec", entity.lfoundrec);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Arscavgdaystopayresults BuildArscavgdaystopayresultsFromRow(DataRow row)
        {
            Arscavgdaystopayresults entity = new Arscavgdaystopayresults();

            entity.newavgpaydays = row.IsNull("newavgpaydays") ? 0 : row.Field <int>("newavgpaydays");
            entity.newnopays     = row.IsNull("newnopays") ? 0 : row.Field <int>("newnopays");
            entity.lfoundrec     = row.Field <bool>("lfoundrec");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }