Click here to Skip to main content
15,887,322 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to show time zones in dates (Time Stamp) Pin
Murray Whipps19-Feb-15 6:32
Murray Whipps19-Feb-15 6:32 
QuestionDeconstruction of a VBA Code Module Pin
ruvain18-Feb-15 0:41
ruvain18-Feb-15 0:41 
AnswerRe: Deconstruction of a VBA Code Module Pin
Chris Quinn18-Feb-15 1:00
Chris Quinn18-Feb-15 1:00 
QuestionData entry in VB6Flexgrid1 developed by Mostafa Kaisoun Pin
Preeti197917-Feb-15 21:23
Preeti197917-Feb-15 21:23 
AnswerRe: Data entry in VB6Flexgrid1 developed by Mostafa Kaisoun Pin
Chris Quinn17-Feb-15 21:37
Chris Quinn17-Feb-15 21:37 
AnswerRe: Data entry in VB6Flexgrid1 developed by Mostafa Kaisoun Pin
den2k8817-Feb-15 22:13
professionalden2k8817-Feb-15 22:13 
GeneralRe: Data entry in VB6Flexgrid1 developed by Mostafa Kaisoun Pin
Preeti197918-Feb-15 22:23
Preeti197918-Feb-15 22:23 
QuestionEntity Framework : Set value of a not-mapped property inside a query Pin
dilkonika17-Feb-15 17:03
dilkonika17-Feb-15 17:03 
I'm using entity framework.

I have generated the model.edmx with a wizard process.

For an entity , Myobj1 I have added a not-mapped property :

XML
Partial Public Class Myobj1
    <NotMapped> Public Property sumvalue As Decimal
End Class


Now I have this query :
SQL
Dim lst = (From t In context.MyObj1 _
       where t1.id>6 Select New With { _
          .Parent = t, _
          .sash = t.child1.Where(Function(t2) t2.tp=2) _
                          .Select(Function(t3) t3.quantity), _
                          .DefaultIfEmpty().Sum(), _
}).ToList


I want that instead of .sash , to put the sum value into the not-mapped property .sumvalue.

Is this possible to do this in my query, and if yes , how can I do ?

Thank you !
QuestionEntity Framework : Incorrect result in child collections when repeat query Pin
dilkonika16-Feb-15 15:53
dilkonika16-Feb-15 15:53 
QuestionWindows Form VB 2010 Pin
BobbyStrain16-Feb-15 6:37
BobbyStrain16-Feb-15 6:37 
SuggestionRe: Windows Form VB 2010 Pin
Richard MacCutchan16-Feb-15 7:42
mveRichard MacCutchan16-Feb-15 7:42 
GeneralRe: Windows Form VB 2010 Pin
BobbyStrain16-Feb-15 8:51
BobbyStrain16-Feb-15 8:51 
GeneralRe: Windows Form VB 2010 Pin
Dave Kreskowiak16-Feb-15 9:39
mveDave Kreskowiak16-Feb-15 9:39 
GeneralRe: Windows Form VB 2010 Pin
BobbyStrain16-Feb-15 9:59
BobbyStrain16-Feb-15 9:59 
GeneralRe: Windows Form VB 2010 Pin
Dave Kreskowiak16-Feb-15 10:11
mveDave Kreskowiak16-Feb-15 10:11 
GeneralRe: Windows Form VB 2010 Pin
BobbyStrain16-Feb-15 10:18
BobbyStrain16-Feb-15 10:18 
GeneralRe: Windows Form VB 2010 Pin
Dave Kreskowiak16-Feb-15 10:38
mveDave Kreskowiak16-Feb-15 10:38 
GeneralRe: Windows Form VB 2010 Pin
BobbyStrain16-Feb-15 12:15
BobbyStrain16-Feb-15 12:15 
GeneralRe: Windows Form VB 2010 Pin
Dave Kreskowiak16-Feb-15 12:31
mveDave Kreskowiak16-Feb-15 12:31 
GeneralRe: Windows Form VB 2010 Pin
Richard MacCutchan16-Feb-15 21:18
mveRichard MacCutchan16-Feb-15 21:18 
GeneralRe: Windows Form VB 2010 Pin
BobbyStrain17-Feb-15 5:39
BobbyStrain17-Feb-15 5:39 
GeneralRe: Windows Form VB 2010 Pin
Richard MacCutchan17-Feb-15 6:06
mveRichard MacCutchan17-Feb-15 6:06 
GeneralRe: Windows Form VB 2010 Pin
BobbyStrain17-Feb-15 10:35
BobbyStrain17-Feb-15 10:35 
QuestionEntity Framework : Using summary functions inside a projection Pin
dilkonika15-Feb-15 16:30
dilkonika15-Feb-15 16:30 
AnswerRe: Entity Framework : Using summary functions inside a projection Pin
Dave Kreskowiak15-Feb-15 17:42
mveDave Kreskowiak15-Feb-15 17:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.