Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSastplookupresults(ref DataRow row, Sastplookupresults entity)
 {
     row.SetField("callingURL", entity.callingURL);
     row.SetField("callingURLH5", entity.callingURLH5);
     row.SetField("processno", entity.processno);
     row.SetField("processorpartnerid", entity.processorpartnerid);
     row.SetField("processoruserid", entity.processoruserid);
     row.SetField("processoruserpw", entity.processoruserpw);
     row.SetField("processorvendorid", entity.processorvendorid);
     row.SetField("responseURL", entity.responseURL);
     row.SetField("responseURLH5", entity.responseURLH5);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Sastplookupresults BuildSastplookupresultsFromRow(DataRow row)
        {
            Sastplookupresults entity = new Sastplookupresults();

            entity.callingURL         = row.IsNull("callingURL") ? string.Empty : row.Field <string>("callingURL");
            entity.callingURLH5       = row.IsNull("callingURLH5") ? string.Empty : row.Field <string>("callingURLH5");
            entity.processno          = row.IsNull("processno") ? 0 : row.Field <int>("processno");
            entity.processorpartnerid = row.IsNull("processorpartnerid") ? string.Empty : row.Field <string>("processorpartnerid");
            entity.processoruserid    = row.IsNull("processoruserid") ? string.Empty : row.Field <string>("processoruserid");
            entity.processoruserpw    = row.IsNull("processoruserpw") ? string.Empty : row.Field <string>("processoruserpw");
            entity.processorvendorid  = row.IsNull("processorvendorid") ? string.Empty : row.Field <string>("processorvendorid");
            entity.responseURL        = row.IsNull("responseURL") ? string.Empty : row.Field <string>("responseURL");
            entity.responseURLH5      = row.IsNull("responseURLH5") ? string.Empty : row.Field <string>("responseURLH5");
            entity.userfield          = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }