/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPorrarreptfullrefreshrun(ref DataRow row, Porrarreptfullrefreshrun entity) { row.SetField("buyer", entity.buyer); row.SetField("vendno", entity.vendno); row.SetField("whse", entity.whse); row.SetField("prodline", entity.prodline); row.SetField("whsesurplus", entity.whsesurplus); row.SetField("processtype", entity.processtype); row.SetField("printusagehistfl", entity.printusagehistfl); row.SetField("printaltvendorsfl", entity.printaltvendorsfl); row.SetField("printsubsfl", entity.printsubsfl); row.SetField("printblfl", entity.printblfl); row.SetField("printrushfl", entity.printrushfl); row.SetField("prodlinefl", entity.prodlinefl); row.SetField("printdnrfl", entity.printdnrfl); row.SetField("printlnignorefl", entity.printlnignorefl); row.SetField("printcommentsfl", entity.printcommentsfl); row.SetField("halfwayfl", entity.halfwayfl); row.SetField("useplinefl", entity.useplinefl); }
public static Porrarreptfullrefreshrun BuildPorrarreptfullrefreshrunFromRow(DataRow row) { Porrarreptfullrefreshrun entity = new Porrarreptfullrefreshrun(); entity.buyer = row.IsNull("buyer") ? string.Empty : row.Field <string>("buyer"); entity.vendno = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.prodline = row.IsNull("prodline") ? string.Empty : row.Field <string>("prodline"); entity.whsesurplus = row.IsNull("whsesurplus") ? string.Empty : row.Field <string>("whsesurplus"); entity.processtype = row.IsNull("processtype") ? string.Empty : row.Field <string>("processtype"); entity.printusagehistfl = row.Field <bool>("printusagehistfl"); entity.printaltvendorsfl = row.Field <bool>("printaltvendorsfl"); entity.printsubsfl = row.Field <bool>("printsubsfl"); entity.printblfl = row.Field <bool>("printblfl"); entity.printrushfl = row.Field <bool>("printrushfl"); entity.prodlinefl = row.Field <bool>("prodlinefl"); entity.printdnrfl = row.Field <bool>("printdnrfl"); entity.printlnignorefl = row.Field <bool>("printlnignorefl"); entity.printcommentsfl = row.Field <bool>("printcommentsfl"); entity.halfwayfl = row.Field <bool>("halfwayfl"); entity.useplinefl = row.Field <bool>("useplinefl"); return(entity); }