Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupcriteria(ref DataRow row, Glsfsetupcriteria entity)
 {
     row.SetField("action", entity.action);
     row.SetField("designname", entity.designname);
     row.SetField("seqno", entity.seqno);
     row.SetField("rectype", entity.rectype);
     row.SetField("glsfrowid", entity.glsfrowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Glsfsetupcriteria BuildGlsfsetupcriteriaFromRow(DataRow row)
        {
            Glsfsetupcriteria entity = new Glsfsetupcriteria();

            entity.action     = row.IsNull("action") ? string.Empty : row.Field <string>("action");
            entity.designname = row.IsNull("designname") ? string.Empty : row.Field <string>("designname");
            entity.seqno      = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.rectype    = row.IsNull("rectype") ? string.Empty : row.Field <string>("rectype");
            entity.glsfrowid  = row.Field <byte[]>("glsfrowid").ToStringEncoded();
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }