Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGetlabeludcresults(ref DataRow row, Getlabeludcresults entity)
 {
     row.SetField("emp_num", entity.empNum);
     row.SetField("legacy_labelfl", entity.legacyLabelfl);
     row.SetField("param_type", entity.paramType);
     row.SetField("udc_type", entity.udcType);
     row.SetField("udc_id", entity.udcId);
     row.SetField("udc_value", entity.udcValue);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("rowID", entity.rowID.ToByteArray());
     row.SetField("isOverridden", entity.isOverridden);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Getlabeludcresults BuildGetlabeludcresultsFromRow(DataRow row)
        {
            Getlabeludcresults entity = new Getlabeludcresults();

            entity.empNum        = row.IsNull("emp_num") ? string.Empty : row.Field <string>("emp_num");
            entity.legacyLabelfl = row.Field <bool>("legacy_labelfl");
            entity.paramType     = row.IsNull("param_type") ? string.Empty : row.Field <string>("param_type");
            entity.udcType       = row.IsNull("udc_type") ? string.Empty : row.Field <string>("udc_type");
            entity.udcId         = row.IsNull("udc_id") ? string.Empty : row.Field <string>("udc_id");
            entity.udcValue      = row.IsNull("udc_value") ? string.Empty : row.Field <string>("udc_value");
            entity.transDate     = row.IsNull("trans_date") ? string.Empty : row.Field <string>("trans_date");
            entity.transProc     = row.IsNull("trans_proc") ? string.Empty : row.Field <string>("trans_proc");
            entity.rowID         = row.Field <byte[]>("rowID").ToStringEncoded();
            entity.isOverridden  = row.Field <bool>("isOverridden");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }