Beispiel #1
0
        public static Buildcompttsingle BuildBuildcompttsingleFromRow(DataRow row)
        {
            Buildcompttsingle entity = new Buildcompttsingle();

            entity.unit      = row.IsNull("unit") ? string.Empty : row.Field <string>("unit");
            entity.qtyavail  = row.IsNull("qtyavail") ? decimal.Zero : row.Field <decimal>("qtyavail");
            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 UpdateRowFromBuildcompttsingle(ref DataRow row, Buildcompttsingle entity)
 {
     row.SetField("unit", entity.unit);
     row.SetField("qtyavail", entity.qtyavail);
     row.SetField("userfield", entity.userfield);
 }