示例#1
0
        public static Sabscopyresults BuildSabscopyresultsFromRow(DataRow row)
        {
            Sabscopyresults entity = new Sabscopyresults();

            entity.batchnm   = row.IsNull("batchnm") ? string.Empty : row.Field <string>("batchnm");
            entity.rowid     = row.Field <byte[]>("rowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSabscopyresults(ref DataRow row, Sabscopyresults entity)
 {
     row.SetField("batchnm", entity.batchnm);
     row.SetField("rowid", entity.rowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }