コード例 #1
0
 public MaxTableModel GetMaxTable(string tableName)
 {
     MaxTableModel maximos = new MaxTableModel();
     try
     {
         using (var entity = new db_SeguimientoProtocolo_r2Entities())
         {
             ( from res in entity.spGetMaxTable(tableName)
               select res ).ToList().ForEach(row => {
                   maximos.LastModifiedDate = row.LastModifiedDate;
                   maximos.ServerLastModifiedDate = row.ServerLastModifiedDate;
               });
         }
     }
     catch (Exception ex)
     {
         maximos = null;
     }
     return maximos;
 }