Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeinitcreateprodcriteria(ref DataRow row, Oeinitcreateprodcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("fieldlist", entity.fieldlist);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Oeinitcreateprodcriteria BuildOeinitcreateprodcriteriaFromRow(DataRow row)
        {
            Oeinitcreateprodcriteria entity = new Oeinitcreateprodcriteria();

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.fieldlist = row.IsNull("fieldlist") ? string.Empty : row.Field <string>("fieldlist");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }