Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfinsertcriteria(ref DataRow row, Glsfinsertcriteria entity)
 {
     row.SetField("designname", entity.designname);
     row.SetField("insertWhere", entity.insertWhere);
     row.SetField("insertseqno", entity.insertseqno);
     row.SetField("copyFl", entity.copyFl);
     row.SetField("copyseqno", entity.copyseqno);
     row.SetField("rectype", entity.rectype);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Glsfinsertcriteria BuildGlsfinsertcriteriaFromRow(DataRow row)
        {
            Glsfinsertcriteria entity = new Glsfinsertcriteria();

            entity.designname  = row.IsNull("designname") ? string.Empty : row.Field <string>("designname");
            entity.insertWhere = row.IsNull("insertWhere") ? string.Empty : row.Field <string>("insertWhere");
            entity.insertseqno = row.IsNull("insertseqno") ? 0 : row.Field <int>("insertseqno");
            entity.copyFl      = row.Field <bool>("copyFl");
            entity.copyseqno   = row.IsNull("copyseqno") ? 0 : row.Field <int>("copyseqno");
            entity.rectype     = row.IsNull("rectype") ? string.Empty : row.Field <string>("rectype");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }