コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReceipttransmastercriteria(ref DataRow row, Receipttransmastercriteria entity)
 {
     row.SetField("displayType", entity.displayType);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("rt_num", entity.rtNum);
     row.SetField("row_status", entity.rowStatus);
     row.SetField("type", entity.type);
     row.SetField("carrier", entity.carrier);
     row.SetField("cargo_control", entity.cargoControl);
     row.SetField("deliveryFrom", entity.deliveryFrom);
     row.SetField("deliveryTo", entity.deliveryTo);
     row.SetField("packingListOnly", entity.packingListOnly);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Receipttransmastercriteria BuildReceipttransmastercriteriaFromRow(DataRow row)
        {
            Receipttransmastercriteria entity = new Receipttransmastercriteria();

            entity.displayType     = row.IsNull("displayType") ? string.Empty : row.Field <string>("displayType");
            entity.coNum           = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum           = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.rtNum           = row.IsNull("rt_num") ? string.Empty : row.Field <string>("rt_num");
            entity.rowStatus       = row.IsNull("row_status") ? string.Empty : row.Field <string>("row_status");
            entity.type            = row.IsNull("type") ? string.Empty : row.Field <string>("type");
            entity.carrier         = row.IsNull("carrier") ? string.Empty : row.Field <string>("carrier");
            entity.cargoControl    = row.IsNull("cargo_control") ? string.Empty : row.Field <string>("cargo_control");
            entity.deliveryFrom    = row.Field <DateTime?>("deliveryFrom");
            entity.deliveryTo      = row.Field <DateTime?>("deliveryTo");
            entity.packingListOnly = row.Field <bool>("packingListOnly");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }