Beispiel #1
0
        public static Oeirholdall BuildOeirholdallFromRow(DataRow row)
        {
            Oeirholdall entity = new Oeirholdall();

            entity.custno   = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.shipto   = row.IsNull("shipto") ? string.Empty : row.Field <string>("shipto");
            entity.approvty = row.IsNull("approvty") ? string.Empty : row.Field <string>("approvty");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeirholdall(ref DataRow row, Oeirholdall entity)
 {
     row.SetField("custno", entity.custno);
     row.SetField("shipto", entity.shipto);
     row.SetField("approvty", entity.approvty);
 }