Example #1
0
        public static Oeheaderfinishresults BuildOeheaderfinishresultsFromRow(DataRow row)
        {
            Oeheaderfinishresults entity = new Oeheaderfinishresults();

            entity.lforceprintfl = row.Field <bool>("lforceprintfl");
            entity.lpickfl       = row.Field <bool>("lpickfl");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeheaderfinishresults(ref DataRow row, Oeheaderfinishresults entity)
 {
     row.SetField("lforceprintfl", entity.lforceprintfl);
     row.SetField("lpickfl", entity.lpickfl);
     row.SetField("userfield", entity.userfield);
 }