Beispiel #1
0
        public static Iceanchgbinloccheckcriteria BuildIceanchgbinloccheckcriteriaFromRow(DataRow row)
        {
            Iceanchgbinloccheckcriteria entity = new Iceanchgbinloccheckcriteria();

            entity.icenhRowid = row.Field <byte[]>("icenh-rowid").ToStringEncoded();
            entity.binloc     = row.IsNull("binloc") ? string.Empty : row.Field <string>("binloc");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceanchgbinloccheckcriteria(ref DataRow row, Iceanchgbinloccheckcriteria entity)
 {
     row.SetField("icenh-rowid", entity.icenhRowid.ToByteArray());
     row.SetField("binloc", entity.binloc);
     row.SetField("userfield", entity.userfield);
 }