Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromUpdateemaillistforedi(ref DataRow row, Updateemaillistforedi entity)
 {
     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);
 }
Ejemplo n.º 2
0
        public static Updateemaillistforedi BuildUpdateemaillistforediFromRow(DataRow row)
        {
            Updateemaillistforedi entity = new Updateemaillistforedi();

            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");
            return(entity);
        }