コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaspsectionspecupdate(ref DataRow row, Vaspsectionspecupdate entity)
 {
     row.SetField("vaprod", entity.vaprod);
     row.SetField("vawhse", entity.vawhse);
     row.SetField("vaverno", entity.vaverno);
     row.SetField("seqno", entity.seqno);
     row.SetField("sctntype", entity.sctntype);
     row.SetField("specdata", entity.specdata);
     row.SetField("specprtfl", entity.specprtfl);
     row.SetField("specprtty", entity.specprtty);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Vaspsectionspecupdate BuildVaspsectionspecupdateFromRow(DataRow row)
        {
            Vaspsectionspecupdate entity = new Vaspsectionspecupdate();

            entity.vaprod    = row.IsNull("vaprod") ? string.Empty : row.Field <string>("vaprod");
            entity.vawhse    = row.IsNull("vawhse") ? string.Empty : row.Field <string>("vawhse");
            entity.vaverno   = row.IsNull("vaverno") ? 0 : row.Field <int>("vaverno");
            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.sctntype  = row.IsNull("sctntype") ? string.Empty : row.Field <string>("sctntype");
            entity.specdata  = row.IsNull("specdata") ? string.Empty : row.Field <string>("specdata");
            entity.specprtfl = row.Field <bool>("specprtfl");
            entity.specprtty = row.IsNull("specprtty") ? string.Empty : row.Field <string>("specprtty");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }