Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdsfloadcriteria(ref DataRow row, Pdsfloadcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("action", entity.action);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Pdsfloadcriteria BuildPdsfloadcriteriaFromRow(DataRow row)
        {
            Pdsfloadcriteria entity = new Pdsfloadcriteria();

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