1
Answer

Restoring Site Collection Problem

Ravindranath M

Ravindranath M

12y
1.5k
1

Hi...

while Restoring Site Collection in Foundation. I am getting the following error "Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running the current version. The backup file should be restored to a server with version '14.0.0.6123' or later."

Can u please help in resolving the issue..Which Patch to download and install to restore successfully.
Answers (1)
1
Naresh Singhal

Naresh Singhal

NA 567 850 7y
Hi , going through your problem, i think you need to use Linq join to retireve data from muliple
 
tables, to use join its very simple  :) 
0
First Last

First Last

NA 35 469 7y
Actually, I resolved this (with help from a great guy) and here is the working action method:
 
It creates a header/multi detail view (not a flattend view which i was intially trying to get).
 
CustomerName CustomerImage OrderDate
   Quantity ProductName, ProductType, ProductImage
CustomerName CustomerImage OrderDate
   Quantity ProductName, ProductType, ProductImage
CustomerName CustomerImage OrderDate
   Quantity ProductName, ProductType, ProductImage 
 
public ActionResult GetCustomerOrdersDetails()
{
// Calls the method to populate the list.
List customerOrders = null;
using (DashboardContext _context = new DashboardContext())
{
customerOrders = _context.OrderSet
.GroupBy(x => new { Name = x.Customer.CustomerName, Image = x.Customer.CustomerImage, Date = x.OrderDate })
.Select(x => new CustomerOrdersViewModel
{
CustomerName = x.Key.Name,
CustomerImage = x.Key.Image,
OrderDate = x.Key.Date,
OrderDetailsViewModel = x.SelectMany(y => y.OrderDetail).Select(y => new OrderDetailsViewModel
{
Quantity = y.Quatity,
ProductType = y.Product.ProductType,
ProductName = y.Product.ProductName,
ProductImage = y.Product.ProductImage
}).ToList()
}).ToList();
}
// Return a partial view.
return PartialView("~/Views/Dashboard/GetCustomerOrdersDetails.cshtml", customerOrders);
}