Beispiel #1
0
        public static Poeilinereprice BuildPoeilinerepriceFromRow(DataRow row)
        {
            Poeilinereprice entity = new Poeilinereprice();

            entity.poeirowid = row.Field <byte[]>("poeirowid").ToStringEncoded();
            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 UpdateRowFromPoeilinereprice(ref DataRow row, Poeilinereprice entity)
 {
     row.SetField("poeirowid", entity.poeirowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }