вопрос var = (от заказа в context.MyOrderDetails где userName == order.UserDomainName выбирает новое { order.AccountID, order.OrderNumber, order.OrderStatus, order.StartDate, order.EndDate, заказ . Рекламодатель, заказ . Campaigne, order.BookedRevenue, order.CreativeCount, order.MissingCreative, order.MissingCreative, order.MissingCount, order.CreativeCount, order.NotStartedCount, order.OrderItemActiveCount, order.OrderItemCompletedCount, order.OrderItemCount, order.BookedImpressions, order.UACount, order.UAThroughRate, order.UACPM, order.UADeliveredImpressionCount, order.UADeliveredRevenue, order.UAImpressionGoal, order.UACount, order.MissingCount, order.MissingCreative31to45Count, order.MissingCreative46to60Count, order.MissingCreative61to90Count, order.OrderLifeToDateClickCount, order.OrderDeliveredImpressionCount, order.OrderLifeToDateDiscountedSalesUSD, order.OrderLifeToDateScheduledImpressionCount, order.ActiveState, order.OrderProposalExpirationDate, order.OrderProposalExtensionCount, order.UAOrderedImpressionCount, order.UAPacingLTDDeliveredImpressionCount, order.UAPacingLTDScheduledImpressionCount, order.UAPacingPct, order.PremiumLateCreativeCount, order.PremiumMissingCreative16to30Count, order.PremiumAssignedCreativeCount, order.PremiumMissingCreativeCount, order.PrimaryAeName, order.UAScheduledImpressionCount, order.TotalDayCount, order.UserDomainName, заказ. Filter_OrderGroup order.UADeliveredImpressionPercent, order.DraftOrderCount, order.ProposedOrderCount, order.ApprovedOrderCount, , заказ. Filter_LineofBusiness , заказ. Filter_Status , заказ. Filter_ActiveState , заказ. Filter_StartdateNext30 , заказ. Filter_StartdateNext60 , заказ. Filter_StartdateNext90 , заказ. Filter_EndDateNext30 , заказ. Filter_EndDateNext60 , заказ. Filter_EndDateNext90 , order.LineEvent, order.IsFavorite, order.ClientID }) .ToList (); It дает меня, котор пук errors
System.InvalidCastException был unhandled code Message=Unable потребителя для того чтобы бросить предмет типа «DataServiceOrderedQuery [`65 <>f__AnonymousType2 [System.String, System. Шнур, System.String, 1 `System.Nullable [System.DateTime], System. `1 Nullable [System.DateTime], System.String, System. String, System.Decimal, System. `1 Nullable [System.Int32], System. `1 Nullable [System. Int32] , `1 System.Nullable [System. Int32], `1 System.Nullable [System.Int32], `1 System.Nullable [System.Int32], System. `1 Nullable [System.Int32], System. `1 Nullable [System. Int32] , `1 System.Nullable [System. Int32], `1 System.Nullable [System.Int32], System.Decimal, System.Decimal, `1 System.Nullable [System.Decimal], System. `1 Nullable [System. Decimal], `1 System.Nullable [System.Decimal], System. Decimal, System.Decimal, System. Decimal, `1 System.Nullable [System.Int32], 1 `System.Nullable [System.Int32], System. `1 Nullable [System.Int32], System. `1 Nullable [System. Int32], System.Decimal, System.Decimal, System.Decimal, System.Decimal, System.String, 1 `System.Nullable [System.DateTime], System. Int32, System.Decimal, System. Decimal, System.Decimal, System. `1 Nullable [System.Decimal], `1 System.Nullable[System. Int32], `1 System.Nullable [System.Int32], `1 System.Nullable [System.Int32], System. `1 Nullable [System.Int32], System. String, System.Decimal, System. Int64, System.String, `1 System.Nullable [System.Decimal], System. `1 Nullable [System. Int32] , `1 System.Nullable [System. Int32], `1 System.Nullable [System.Int32], System.String, System. String, System.String, System. String, `1 System.Nullable [System. Byte], `1 System.Nullable [System.Byte], `1 System.Nullable [System.Byte], 1 `System.Nullable [System.Byte], `1 System.Nullable [System.Byte], System. `1 Nullable [System.Byte], System. 1 `String, System.Int32, System.Nullable [System.Int64]]]» к типу «1 `System.Data.Services.Client.DataServiceQuery [Microsoft.Advertising.SalesDashboard. Modules. OrderPerformance. Models.OrderPerformance. MyOrderDetails]». StackTrace: на Microsoft.Advertizing.SalesDashboard.Modules.OrderPerformance. Services. OrderRepository.<>c__DisplayClass85.erDetailsDrillDown>b__83 (смысла PerformanceEntities) на InnerException `2.<>c__DisplayClass277.
class=
|