Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArslloadresults(ref DataRow row, Arslloadresults entity)
 {
     row.SetField("lockboxno", entity.lockboxno);
     row.SetField("custno", entity.custno);
     row.SetField("name", entity.name);
     row.SetField("notesfl", entity.notesfl);
     row.SetField("arslrowid", entity.arslrowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Arslloadresults BuildArslloadresultsFromRow(DataRow row)
        {
            Arslloadresults entity = new Arslloadresults();

            entity.lockboxno = row.IsNull("lockboxno") ? string.Empty : row.Field <string>("lockboxno");
            entity.custno    = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.name      = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.notesfl   = row.IsNull("notesfl") ? string.Empty : row.Field <string>("notesfl");
            entity.arslrowid = row.Field <byte[]>("arslrowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }