Beispiel #1
0
        public static Replclearlist BuildReplclearlistFromRow(DataRow row)
        {
            Replclearlist entity = new Replclearlist();

            entity.movemstRowID           = row.Field <byte[]>("movemstRowID").ToStringEncoded();
            entity.replclearlistUserfield = row.IsNull("replclearlist_userfield") ? string.Empty : row.Field <string>("replclearlist_userfield");
            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 UpdateRowFromReplclearlist(ref DataRow row, Replclearlist entity)
 {
     row.SetField("movemstRowID", entity.movemstRowID.ToByteArray());
     row.SetField("replclearlist_userfield", entity.replclearlistUserfield);
     row.SetField("userfield", entity.userfield);
 }