예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtrrarreptlistcriteria(ref DataRow row, Wtrrarreptlistcriteria entity)
 {
     row.SetField("fromwhse", entity.fromwhse);
     row.SetField("towhse", entity.towhse);
     row.SetField("tocono", entity.tocono);
     row.SetField("sort1", entity.sort1);
     row.SetField("sort2", entity.sort2);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Wtrrarreptlistcriteria BuildWtrrarreptlistcriteriaFromRow(DataRow row)
        {
            Wtrrarreptlistcriteria entity = new Wtrrarreptlistcriteria();

            entity.fromwhse         = row.IsNull("fromwhse") ? string.Empty : row.Field <string>("fromwhse");
            entity.towhse           = row.IsNull("towhse") ? string.Empty : row.Field <string>("towhse");
            entity.tocono           = row.IsNull("tocono") ? 0 : row.Field <int>("tocono");
            entity.sort1            = row.IsNull("sort1") ? string.Empty : row.Field <string>("sort1");
            entity.sort2            = row.IsNull("sort2") ? string.Empty : row.Field <string>("sort2");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }