Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPorrarreptnewreptinit(ref DataRow row, Porrarreptnewreptinit entity)
 {
     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);
 }
Exemplo n.º 2
0
        public static Porrarreptnewreptinit BuildPorrarreptnewreptinitFromRow(DataRow row)
        {
            Porrarreptnewreptinit entity = new Porrarreptnewreptinit();

            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");
            return(entity);
        }