Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoeidrilldown(ref DataRow row, Poeidrilldown entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("correctionfl", entity.correctionfl);
     row.SetField("trackno", entity.trackno);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Poeidrilldown BuildPoeidrilldownFromRow(DataRow row)
        {
            Poeidrilldown entity = new Poeidrilldown();

            entity.pono         = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf        = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.jrnlno       = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.correctionfl = row.Field <bool>("correctionfl");
            entity.trackno      = row.IsNull("trackno") ? 0 : row.Field <int>("trackno");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }