Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLocpendmoverepresults(ref DataRow row, Locpendmoverepresults entity)
 {
     row.SetField("reccount", entity.reccount);
     row.SetField("qty", entity.qty);
     row.SetField("locpendmoverepresultsuserfield", entity.locpendmoverepresultsuserfield);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Locpendmoverepresults BuildLocpendmoverepresultsFromRow(DataRow row)
        {
            Locpendmoverepresults entity = new Locpendmoverepresults();

            entity.reccount = row.IsNull("reccount") ? 0 : row.Field <int>("reccount");
            entity.qty      = row.IsNull("qty") ? decimal.Zero : row.Field <decimal>("qty");
            entity.locpendmoverepresultsuserfield = row.IsNull("locpendmoverepresultsuserfield") ? string.Empty : row.Field <string>("locpendmoverepresultsuserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }