Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEmaillistforediresults(ref DataRow row, Emaillistforediresults entity)
 {
     row.SetField("firstnm", entity.firstnm);
     row.SetField("lastnm", entity.lastnm);
     row.SetField("email", entity.email);
     row.SetField("doctype", entity.doctype);
     row.SetField("primarykey", entity.primarykey);
     row.SetField("secondarykey", entity.secondarykey);
     row.SetField("contactid", entity.contactid);
     row.SetField("csubtype", entity.csubtype);
     row.SetField("lselect", entity.lselect);
     row.SetField("emaillinkexists", entity.emaillinkexists);
 }
Ejemplo n.º 2
0
        public static Emaillistforediresults BuildEmaillistforediresultsFromRow(DataRow row)
        {
            Emaillistforediresults entity = new Emaillistforediresults();

            entity.firstnm         = row.IsNull("firstnm") ? string.Empty : row.Field <string>("firstnm");
            entity.lastnm          = row.IsNull("lastnm") ? string.Empty : row.Field <string>("lastnm");
            entity.email           = row.IsNull("email") ? string.Empty : row.Field <string>("email");
            entity.doctype         = row.IsNull("doctype") ? string.Empty : row.Field <string>("doctype");
            entity.primarykey      = row.IsNull("primarykey") ? string.Empty : row.Field <string>("primarykey");
            entity.secondarykey    = row.IsNull("secondarykey") ? string.Empty : row.Field <string>("secondarykey");
            entity.contactid       = row.IsNull("contactid") ? decimal.Zero : row.Field <decimal>("contactid");
            entity.csubtype        = row.IsNull("csubtype") ? string.Empty : row.Field <string>("csubtype");
            entity.lselect         = row.Field <bool>("lselect");
            entity.emaillinkexists = row.Field <bool>("emaillinkexists");
            return(entity);
        }