sql - Entity framework vb.net error in translating query -


I am trying to change this query:

  select the sale . TLL_Sales_Net, sales.TTL_Sales_Target, Units.TTL_Units_Net from epos_Anal_Branch_Sales_Net until epos_PULL_PM_SKU_STATUS is included in the sale. BRANCH_ID = By then BRANCH_ID is included in epos_Anal_Branch_Units_Day units on sale. BRANCH_ID = Units. BRANCH_ID as far as BRANCH_ID = 45 and sales.DATEKEY = 20140725 and units. DATEKEY = 20140725   

From SQL to an entity framework query in VB.net I am sending my function to BRANCH_ID and so on DateKey output:

  dim MyDate string = Date.Now.ToString ("YYYYMMDD") as   

This is what I have, but it gives not just returns and I am due to the complete loss! This is my question so far, if someone recognizes what I have done, then I will be grateful for a push in the right direction.

Property Daily Usenet String Public Property SalesTarget String Public Property ErrorMessages As String Public Share Function GetStoreSales (ByVal BranchID String Form Try the new list (CLSSTOR cells) as LIVE as slow as the LD ("YYYYMMDD" = To Live.Pos_PULL_PM_SKU_STATUS Join the sale at live.epos_Anal_Branch_Sales_Day. BRANCH_ID equal sale. Join BRANCH_ID units at live.epos_Anal_Branch_Units_Day. BRANCH_ID equal units. BRANCH_ID = CDB (BranchID) andalso sales.DATEKEY = CDbl (MyDate) andalso units.DATEKEY = New selection with CDB (MyDate) {.SalesAmount = sales.TTL_Sales_Net, .SalesTarget = sales.TTL_Sales_Target, .SaleUnits = units.TTL_Units_Net} Each RT m.DailyUnits = CSTR (t.SaleUnits) m.SalesTarget = CSTR (t.SalesTarget) l.Add (M) Next in the form of FRR Dim Meter New ClsStoreSales m.DailyAmount = CSTR (t.SalesAmount) Retraction L. E. Excl. E. New ClsStoreSales e.ErrorMessages = ex.ToString l.Add (E) Return Exception as the pre-try to end the end function in the form of L.

What is the SQLServer profiler as a question? Is being eaten is to be run ... As in [TTL_Sales_Net], [Extent2] [TTL_Sales_Target] as the [[BRANCH_ID], [Extent2] [TTL_Sales_Net] as the operating sp_executesql N'SELECT [Extent1] [BRANCH_ID], < [TTL_Sales_Target], [Extent3]. [TTL_Units_Net] FROM [dbo] from [TTL_Units_Net] [Epos_PULL_PM_SKU_STATUS] AS [Extent1] Inner Join [DBO]. [Extent1] on [Extent2] as [Epos_Anal_Branch_Sales_Day]. [BRANCH_ID] = [Extent2]. [BRANCH_ID] Join Inner [dbo] [Extent1] on [Extent3] as [epos_Anal_Branch_Units_Day]. [BRANCH_ID] = [Extent3]. [DateKey] Where ([Extent1]. [BRANCH_ID] as boat) = @ P__linq__0) and (CAST ([Extent2]. [DATEKEY] as float) = @ p__linq__1) and (CAST ([Extent3] Name as [dateKey] = @ p__linq__2), 'N' @ p__linq__0, name, @ p__linq__1 name, @ p__linq__2 name ', @ p__linq__0 = 45, @ p__linq__1 = 20,140,725, @ p__linq__2 = 20,140,725

this

  live.epos_Anal_Branch_Units_Day, after pre>  

It should be! join units in live.epos_Anal_Branch_Units_Day until BRANCH_ID equals units. BRANCH_ID

Comments

Popular posts from this blog

c# - Textbox not clickable but editable -

Matlab transpose a table vector -

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -