Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcamuimportfileraw(ref DataRow row, Icamuimportfileraw entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("loadrow", entity.loadrow);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Icamuimportfileraw BuildIcamuimportfilerawFromRow(DataRow row)
        {
            Icamuimportfileraw entity = new Icamuimportfileraw();

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