Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoblanketdeleteorders(ref DataRow row, Poblanketdeleteorders entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("transtype", entity.transtype);
     row.SetField("stagecd", entity.stagecd);
 }
Beispiel #2
0
        public static Poblanketdeleteorders BuildPoblanketdeleteordersFromRow(DataRow row)
        {
            Poblanketdeleteorders entity = new Poblanketdeleteorders();

            entity.pono      = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf     = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.transtype = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.stagecd   = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            return(entity);
        }