Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSapjmgrdetail(ref DataRow row, Sapjmgrdetail entity)
 {
     row.SetField("pvsapbmrowid", entity.pvsapbmrowid.ToByteArray());
     row.SetField("titleinfo", entity.titleinfo);
     row.SetField("startupparam", entity.startupparam);
     row.SetField("legend", entity.legend);
     row.SetField("startuppropath", entity.startuppropath);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Sapjmgrdetail BuildSapjmgrdetailFromRow(DataRow row)
        {
            Sapjmgrdetail entity = new Sapjmgrdetail();

            entity.pvsapbmrowid   = row.Field <byte[]>("pvsapbmrowid").ToStringEncoded();
            entity.titleinfo      = row.IsNull("titleinfo") ? string.Empty : row.Field <string>("titleinfo");
            entity.startupparam   = row.IsNull("startupparam") ? string.Empty : row.Field <string>("startupparam");
            entity.legend         = row.IsNull("legend") ? string.Empty : row.Field <string>("legend");
            entity.startuppropath = row.IsNull("startuppropath") ? string.Empty : row.Field <string>("startuppropath");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }