Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGeticetnotesidbyrowid(ref DataRow row, Geticetnotesidbyrowid entity)
 {
     row.SetField("icetrowid", entity.icetrowid.ToByteArray());
     row.SetField("createfl", entity.createfl);
     row.SetField("icetnotesid", entity.icetnotesid);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Geticetnotesidbyrowid BuildGeticetnotesidbyrowidFromRow(DataRow row)
        {
            Geticetnotesidbyrowid entity = new Geticetnotesidbyrowid();

            entity.icetrowid   = row.Field <byte[]>("icetrowid").ToStringEncoded();
            entity.createfl    = row.Field <bool>("createfl");
            entity.icetnotesid = row.IsNull("icetnotesid") ? 0 : row.Field <int>("icetnotesid");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }