Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSapjmgrfiles(ref DataRow row, Sapjmgrfiles entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("patch-level", entity.patchLevel);
     row.SetField("file-name", entity.fileName);
     row.SetField("file-create-date", entity.fileCreateDate);
     row.SetField("file-create-time", entity.fileCreateTime);
     row.SetField("d-file-create-time", entity.dFileCreateTime);
     row.SetField("file-mod-date", entity.fileModDate);
     row.SetField("file-mod-time", entity.fileModTime);
     row.SetField("d-file-mod-time", entity.dFileModTime);
     row.SetField("pathname", entity.pathname);
     row.SetField("full-pathname", entity.fullPathname);
     row.SetField("file-size", entity.fileSize);
     row.SetField("file-type", entity.fileType);
     row.SetField("cDetail", entity.cDetail);
     row.SetField("islibraried", entity.islibraried);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Sapjmgrfiles BuildSapjmgrfilesFromRow(DataRow row)
        {
            Sapjmgrfiles entity = new Sapjmgrfiles();

            entity.seqno           = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.patchLevel      = row.IsNull("patch-level") ? string.Empty : row.Field <string>("patch-level");
            entity.fileName        = row.IsNull("file-name") ? string.Empty : row.Field <string>("file-name");
            entity.fileCreateDate  = row.Field <DateTime?>("file-create-date");
            entity.fileCreateTime  = row.IsNull("file-create-time") ? 0 : row.Field <int>("file-create-time");
            entity.dFileCreateTime = row.IsNull("d-file-create-time") ? string.Empty : row.Field <string>("d-file-create-time");
            entity.fileModDate     = row.Field <DateTime?>("file-mod-date");
            entity.fileModTime     = row.IsNull("file-mod-time") ? 0 : row.Field <int>("file-mod-time");
            entity.dFileModTime    = row.IsNull("d-file-mod-time") ? string.Empty : row.Field <string>("d-file-mod-time");
            entity.pathname        = row.IsNull("pathname") ? string.Empty : row.Field <string>("pathname");
            entity.fullPathname    = row.IsNull("full-pathname") ? string.Empty : row.Field <string>("full-pathname");
            entity.fileSize        = row.IsNull("file-size") ? 0 : row.Field <int>("file-size");
            entity.fileType        = row.IsNull("file-type") ? string.Empty : row.Field <string>("file-type");
            entity.cDetail         = row.IsNull("cDetail") ? string.Empty : row.Field <string>("cDetail");
            entity.islibraried     = row.Field <bool>("islibraried");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }