예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtdeletecriteria(ref DataRow row, Wtdeletecriteria entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("secure", entity.secure);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("delmodecd", entity.delmodecd);
     row.SetField("shipfmwhse", entity.shipfmwhse);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Wtdeletecriteria BuildWtdeletecriteriaFromRow(DataRow row)
        {
            Wtdeletecriteria entity = new Wtdeletecriteria();

            entity.wtno       = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf      = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.secure     = row.IsNull("secure") ? 0 : row.Field <int>("secure");
            entity.stagecd    = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.delmodecd  = row.IsNull("delmodecd") ? string.Empty : row.Field <string>("delmodecd");
            entity.shipfmwhse = row.IsNull("shipfmwhse") ? string.Empty : row.Field <string>("shipfmwhse");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }