Example #1
0
        public static Glsfmovecriteria BuildGlsfmovecriteriaFromRow(DataRow row)
        {
            Glsfmovecriteria entity = new Glsfmovecriteria();

            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.glsfrowid = row.Field <byte[]>("glsfrowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfmovecriteria(ref DataRow row, Glsfmovecriteria entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("glsfrowid", entity.glsfrowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }