Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCreatewolistttcriteria(ref DataRow row, Createwolistttcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("compprod", entity.compprod);
     row.SetField("whse", entity.whse);
     row.SetField("enterdt", entity.enterdt);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("botype", entity.botype);
     row.SetField("begwono", entity.begwono);
     row.SetField("createdby", entity.createdby);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("verno", entity.verno);
 }
Пример #2
0
        public static Createwolistttcriteria BuildCreatewolistttcriteriaFromRow(DataRow row)
        {
            Createwolistttcriteria entity = new Createwolistttcriteria();

            entity.prod             = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.compprod         = row.IsNull("compprod") ? string.Empty : row.Field <string>("compprod");
            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.enterdt          = row.Field <DateTime?>("enterdt");
            entity.stagecd          = row.IsNull("stagecd") ? string.Empty : row.Field <string>("stagecd");
            entity.botype           = row.IsNull("botype") ? string.Empty : row.Field <string>("botype");
            entity.begwono          = row.IsNull("begwono") ? 0 : row.Field <int>("begwono");
            entity.createdby        = row.IsNull("createdby") ? string.Empty : row.Field <string>("createdby");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.verno            = row.IsNull("verno") ? 0 : row.Field <int>("verno");
            return(entity);
        }