Browse by Tags

Related Posts

  • LINQ problem

    Hi there, I have a LINQ to SQL file. I've dragged all my tables on and it all worked. I then modified a table (tblComment), removed it from my LINQ to SQL file and readded it. Now when I try to compile my project I receive this error: Error 2 'linqdatabaseDataContext' does not contain a definition...
    Posted to Data Access and ObjectDataSource Control (Forum) by mongoose_za on 06-15-2009, 12:00 AM
    Filed under: LINQ
  • Linq Error: Method 'System.String CleanUpLanguageTags(System.String)' has no supported translation to SQL.

    Hi I'm having a trouble with this linq query: Dim data = From p In db.Table1_ From d In p.Table2.DefaultIfEmpty() _ Select Code = p.Code, _ Descr = p.Descr, _ LevelCode = p.LevelCode, _ Table1ID = p.Table1ID , _ Prc = d.Prc, _ SymbolCurrencies = d.Table3s.SymbolCurrencies _ Order By Code While I'm...
    Posted to Data Access and ObjectDataSource Control (Forum) by bastianonm on 06-15-2009, 12:00 AM
    Filed under: .NET 3.5, linq, linq to sql, Visual Studio 2008 LINQ to SQL, asP.NET 3.5 linq
  • Linq to Entity Model

    Hi. I have a sql compact 3.5 database with shema which was illustrated her e. As you can see from the picture i have 3 relations "one-to-many" and table "Zvon_users" join twice in table "Zvon_tasks". 3 foreign keys in table "Zvon_tasks" was placed at NavigationProperties...
    Posted to Data Access and ObjectDataSource Control (Forum) by SpaceMarine on 06-13-2009, 12:00 AM
    Filed under: Linq, ADO.NET Entity Framework
  • Using One Table to Help Fill Another - LINQ or SqlDataSource

    Hello, I have 2 tables I need help adding content to. The two tables are Field and Field_Answers FIELD Id Form_id Question_id Field_name Question FIELD_ANSWERS Id Form_id Forms_submitted_id Question_id Value The FORM_ID is the form that these 2 tables are tied to. Each Form has 1 FIELD table associated...
    Posted to Data Presentation Controls (Forum) by TJNevis on 06-10-2009, 12:00 AM
    Filed under: sqldatasource, .NET 3.5, DataTable, linq
  • Re: how to sort PrincipalSearchResult(Of Principal)

    Cast your resluts to a list. You can then sort the list using Linq or soemthing like that. I have a code snippet below that shows how to return your results in the form of an IEnumerable collection. You can then use the standard LINQ sorting methods. hth private static IEnumerable<UserPrincipal>...
    Posted to Active Directory and LDAP (Forum) by lanphi on 06-05-2009, 12:00 AM
    Filed under: search, Active Directory, ienumerable, list, linq
  • Dictionary/List :: Linq/Xml :: Custom Class

    I have 2 custom classes: Theme.vb and ThemeManager.vb. Theme.vb looks like: 1 Public Class Theme 2 Private m_domain As String = String .Empty 3 Private m_name As String = String .Empty 4 5 Public Property Domain() As String 6 Get 7 Return m_domain 8 End Get 9 Set ( ByVal value As String ) 10 m_domain...
    Posted to Architecture (Forum) by scott.elliott on 06-02-2009, 12:00 AM
    Filed under: vb.net, asp.net, Custom Class, dictionary, List, linq, xml
  • LINQ - SELECT DISTINCT PROBLEM

    Hello All, I have linq query that takes 2 list(arrays - ColIds and Colvals) and an Integer Value (InstitutionID). I am using CONTAINS to match the values in the Lists. I want the results to be distict. The Distinct at the end of the query is not doing it (see code below). I am always getting repeated...
    Posted to Data Access and ObjectDataSource Control (Forum) by LibyGeorge on 06-02-2009, 12:00 AM
    Filed under: "Linq to Sql" LinqDataSource, Linq inner joins, Linq, .net linq c#
  • Dynamic select query with LINQ

    Hi, Im making an c# asp.net webservice and using LINQ for my DAL layer. Im using an dynamic select query like below and it works. But I dont like the performance because the query is executed in every if statement where the result of that if is true. Is it possible to execute the query 1 time at the...
    Posted to Data Access and ObjectDataSource Control (Forum) by khalidelmeknesi on 06-02-2009, 12:00 AM
    Filed under: selectt query, Linq
  • How to write this query in LINQ

    This SQL query is used for getting one news item for each category. Can anyone help me on how to write this query in LINQ select * from News t where t.NewsID in ( select top 1 NewsID from News tt where tt.CategoryID = t.CategoryID order by tt.CreatedOn desc ) An early reply will be really helpful. Thanks...
    Posted to Data Access and ObjectDataSource Control (Forum) by salmavaz on 05-30-2009, 12:00 AM
    Filed under: SQL 2005 Relationships, IN query, Linq
  • Dynamic linq + AND search operator + collection list = stuck!

    Hello All, I have been stumped on his problem for a couple days now. We have a simple search page with 3 search criterias: - Gender - Age - Name We were instructed to create the search in such a way that the end user can select any number of criterias to perform a search such as: Gender = Female, Age...
    Posted to Getting Started (Forum) by GD196 on 05-29-2009, 12:00 AM
    Filed under: LINQ
Page 1 of 47 (462 items) 1 2 3 4 5 Next > ... Last »