コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDnbilaunchresponse(ref DataRow row, Dnbilaunchresponse entity)
 {
     row.SetField("name", entity.name);
     row.SetField("addr", entity.addr);
     row.SetField("city", entity.city);
     row.SetField("state", entity.state);
     row.SetField("zipcd", entity.zipcd);
     row.SetField("country", entity.country);
     row.SetField("phoneno", entity.phoneno);
     row.SetField("recommendedcredit", entity.recommendedcredit);
     row.SetField("dunsno", entity.dunsno);
     row.SetField("parentdunsno", entity.parentdunsno);
     row.SetField("domesticdunsno", entity.domesticdunsno);
     row.SetField("globaldunsno", entity.globaldunsno);
     row.SetField("applicationid", entity.applicationid);
     row.SetField("applicationstatus", entity.applicationstatus);
     row.SetField("scorecard", entity.scorecard);
     row.SetField("matchtype", entity.matchtype);
     row.SetField("workflowstatus", entity.workflowstatus);
     row.SetField("faultcode", entity.faultcode);
     row.SetField("faulterror", entity.faulterror);
     row.SetField("origcredlim", entity.origcredlim);
     row.SetField("newcredlim", entity.newcredlim);
     row.SetField("sxxmldocstatustype", entity.sxxmldocstatustype);
     row.SetField("sxxmldocerrormess", entity.sxxmldocerrormess);
     row.SetField("sxxmldocid", entity.sxxmldocid);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Dnbilaunchresponse BuildDnbilaunchresponseFromRow(DataRow row)
        {
            Dnbilaunchresponse entity = new Dnbilaunchresponse();

            entity.name               = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.addr               = row.IsNull("addr") ? string.Empty : row.Field <string>("addr");
            entity.city               = row.IsNull("city") ? string.Empty : row.Field <string>("city");
            entity.state              = row.IsNull("state") ? string.Empty : row.Field <string>("state");
            entity.zipcd              = row.IsNull("zipcd") ? string.Empty : row.Field <string>("zipcd");
            entity.country            = row.IsNull("country") ? string.Empty : row.Field <string>("country");
            entity.phoneno            = row.IsNull("phoneno") ? string.Empty : row.Field <string>("phoneno");
            entity.recommendedcredit  = row.IsNull("recommendedcredit") ? decimal.Zero : row.Field <decimal>("recommendedcredit");
            entity.dunsno             = row.IsNull("dunsno") ? string.Empty : row.Field <string>("dunsno");
            entity.parentdunsno       = row.IsNull("parentdunsno") ? string.Empty : row.Field <string>("parentdunsno");
            entity.domesticdunsno     = row.IsNull("domesticdunsno") ? string.Empty : row.Field <string>("domesticdunsno");
            entity.globaldunsno       = row.IsNull("globaldunsno") ? string.Empty : row.Field <string>("globaldunsno");
            entity.applicationid      = row.IsNull("applicationid") ? string.Empty : row.Field <string>("applicationid");
            entity.applicationstatus  = row.IsNull("applicationstatus") ? string.Empty : row.Field <string>("applicationstatus");
            entity.scorecard          = row.IsNull("scorecard") ? string.Empty : row.Field <string>("scorecard");
            entity.matchtype          = row.IsNull("matchtype") ? string.Empty : row.Field <string>("matchtype");
            entity.workflowstatus     = row.IsNull("workflowstatus") ? string.Empty : row.Field <string>("workflowstatus");
            entity.faultcode          = row.IsNull("faultcode") ? string.Empty : row.Field <string>("faultcode");
            entity.faulterror         = row.IsNull("faulterror") ? string.Empty : row.Field <string>("faulterror");
            entity.origcredlim        = row.IsNull("origcredlim") ? decimal.Zero : row.Field <decimal>("origcredlim");
            entity.newcredlim         = row.IsNull("newcredlim") ? decimal.Zero : row.Field <decimal>("newcredlim");
            entity.sxxmldocstatustype = row.IsNull("sxxmldocstatustype") ? string.Empty : row.Field <string>("sxxmldocstatustype");
            entity.sxxmldocerrormess  = row.IsNull("sxxmldocerrormess") ? string.Empty : row.Field <string>("sxxmldocerrormess");
            entity.sxxmldocid         = row.IsNull("sxxmldocid") ? 0 : row.Field <int>("sxxmldocid");
            entity.userfield          = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }