Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfduplicatesourcelist(ref DataRow row, Glsfduplicatesourcelist entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("recType", entity.recType);
     row.SetField("recDesc", entity.recDesc);
     row.SetField("comment", entity.comment);
     row.SetField("glsfRowid", entity.glsfRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Glsfduplicatesourcelist BuildGlsfduplicatesourcelistFromRow(DataRow row)
        {
            Glsfduplicatesourcelist entity = new Glsfduplicatesourcelist();

            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.recType   = row.IsNull("recType") ? string.Empty : row.Field <string>("recType");
            entity.recDesc   = row.IsNull("recDesc") ? string.Empty : row.Field <string>("recDesc");
            entity.comment   = row.IsNull("comment") ? string.Empty : row.Field <string>("comment");
            entity.glsfRowid = row.Field <byte[]>("glsfRowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }