Click here to Skip to main content
15,888,286 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: A C# DLL produce error on VB.net project Pin
Richard Deeming2-Feb-15 9:29
mveRichard Deeming2-Feb-15 9:29 
GeneralRe: A C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 9:56
dilkonika2-Feb-15 9:56 
GeneralRe: A C# DLL produce error on VB.net project Pin
Richard Deeming2-Feb-15 10:05
mveRichard Deeming2-Feb-15 10:05 
GeneralRe: A C# DLL produce error on VB.net project Pin
dilkonika2-Feb-15 9:59
dilkonika2-Feb-15 9:59 
QuestionMicrosoft.Office.Interop.Excel.Application and pictures Pin
jkirkerx2-Feb-15 8:11
professionaljkirkerx2-Feb-15 8:11 
AnswerRe: Microsoft.Office.Interop.Excel.Application and pictures Pin
Kenneth Haugland3-Feb-15 8:14
mvaKenneth Haugland3-Feb-15 8:14 
General[Heading over to the Microsoft Forum for this] Pin
jkirkerx3-Feb-15 9:24
professionaljkirkerx3-Feb-15 9:24 
QuestionEntity Framework : Filter child entities Pin
dilkonika31-Jan-15 7:15
dilkonika31-Jan-15 7:15 
Hello !

I'm using VB.net and entity Framework.
I have situation where depending on several conditions I construct a query step by step .

This is the code :(Article has 2 relationship with F1 and F2)

SQL
Dim list1 As IEnumerable(Of Article)
         list1 = From t In context.Articles.Include("F1").Include("F2") Order By t.name Ascending
                     Select t
         If condition1 then
             list1 = list1.Where(Function(t2) t2.tp = 1)
         End If
         If condition2 then
             list1 = list1.Where(Function(t2) t2.id = 7)
         End If
         Myreport.datasource=list1.ToList()


This code is working , but now I want to add a new condition , and if this is true the child "F1" should be filtered.

How can I filter the Child "F1"

Thank you !
AnswerRe: Entity Framework : Filter child entities Pin
Kenneth Haugland31-Jan-15 21:35
mvaKenneth Haugland31-Jan-15 21:35 
GeneralRe: Entity Framework : Filter child entities Pin
dilkonika1-Feb-15 5:02
dilkonika1-Feb-15 5:02 
AnswerRe: Entity Framework : Filter child entities Pin
Kenneth Haugland1-Feb-15 19:09
mvaKenneth Haugland1-Feb-15 19:09 
GeneralRe: Entity Framework : Filter child entities Pin
dilkonika2-Feb-15 4:45
dilkonika2-Feb-15 4:45 
GeneralRe: Entity Framework : Filter child entities Pin
Kenneth Haugland2-Feb-15 4:55
mvaKenneth Haugland2-Feb-15 4:55 
GeneralRe: Entity Framework : Filter child entities Pin
dilkonika2-Feb-15 5:13
dilkonika2-Feb-15 5:13 
QuestionOverriding events in an inherited Control Pin
Sam Marrocco30-Jan-15 9:20
Sam Marrocco30-Jan-15 9:20 
AnswerRe: Overriding events in an inherited Control Pin
Mycroft Holmes1-Feb-15 11:59
professionalMycroft Holmes1-Feb-15 11:59 
QuestionUpdate a database structure according to a model Pin
dilkonika29-Jan-15 18:16
dilkonika29-Jan-15 18:16 
AnswerRe: Update a database structure according to a model Pin
Richard Deeming30-Jan-15 1:26
mveRichard Deeming30-Jan-15 1:26 
GeneralRe: Update a database structure according to a model Pin
dilkonika30-Jan-15 18:07
dilkonika30-Jan-15 18:07 
AnswerRe: Update a database structure according to a model Pin
Mycroft Holmes30-Jan-15 13:44
professionalMycroft Holmes30-Jan-15 13:44 
GeneralRe: Update a database structure according to a model Pin
dilkonika30-Jan-15 18:16
dilkonika30-Jan-15 18:16 
GeneralRe: Update a database structure according to a model Pin
Mycroft Holmes31-Jan-15 21:09
professionalMycroft Holmes31-Jan-15 21:09 
GeneralRe: Update a database structure according to a model Pin
dilkonika2-Feb-15 4:35
dilkonika2-Feb-15 4:35 
GeneralRe: Update a database structure according to a model Pin
Mycroft Holmes2-Feb-15 11:44
professionalMycroft Holmes2-Feb-15 11:44 
QuestionVB.Net programming Pin
John Schlaff28-Jan-15 16:26
John Schlaff28-Jan-15 16:26 

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.