Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromInvdiscbuildinvprob(ref DataRow row, Invdiscbuildinvprob entity)
 {
     row.SetField("bin_num", entity.binNum);
     row.SetField("ABS_num", entity.aBSNum);
     row.SetField("TRANS_type", entity.tRANSType);
     row.SetField("emp_num", entity.empNum);
     row.SetField("TIME_stamp", entity.tIMEStamp);
     row.SetField("problem", entity.problem);
     row.SetField("expected", entity.expected);
     row.SetField("actual", entity.actual);
     row.SetField("invdiscbuildinvprobuserfield", entity.invdiscbuildinvprobuserfield);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Invdiscbuildinvprob BuildInvdiscbuildinvprobFromRow(DataRow row)
        {
            Invdiscbuildinvprob entity = new Invdiscbuildinvprob();

            entity.binNum    = row.IsNull("bin_num") ? string.Empty : row.Field <string>("bin_num");
            entity.aBSNum    = row.IsNull("ABS_num") ? string.Empty : row.Field <string>("ABS_num");
            entity.tRANSType = row.IsNull("TRANS_type") ? string.Empty : row.Field <string>("TRANS_type");
            entity.empNum    = row.IsNull("emp_num") ? string.Empty : row.Field <string>("emp_num");
            entity.tIMEStamp = row.IsNull("TIME_stamp") ? string.Empty : row.Field <string>("TIME_stamp");
            entity.problem   = row.IsNull("problem") ? string.Empty : row.Field <string>("problem");
            entity.expected  = row.IsNull("expected") ? string.Empty : row.Field <string>("expected");
            entity.actual    = row.IsNull("actual") ? string.Empty : row.Field <string>("actual");
            entity.invdiscbuildinvprobuserfield = row.IsNull("invdiscbuildinvprobuserfield") ? string.Empty : row.Field <string>("invdiscbuildinvprobuserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }