Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaaautablelist(ref DataRow row, Saaautablelist entity)
 {
     row.SetField("tablename", entity.tablename);
     row.SetField("tabledesc", entity.tabledesc);
     row.SetField("tablerowid", entity.tablerowid.ToByteArray());
     row.SetField("selectfl", entity.selectfl);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Saaautablelist BuildSaaautablelistFromRow(DataRow row)
        {
            Saaautablelist entity = new Saaautablelist();

            entity.tablename  = row.IsNull("tablename") ? string.Empty : row.Field <string>("tablename");
            entity.tabledesc  = row.IsNull("tabledesc") ? string.Empty : row.Field <string>("tabledesc");
            entity.tablerowid = row.Field <byte[]>("tablerowid").ToStringEncoded();
            entity.selectfl   = row.Field <bool>("selectfl");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }