Browse by Tags

Related Posts

  • how to know the record I want to query doesn't exist via LINQ?

    Hi all: for example: testDataContext db=new testDataContext(); var res=db.tables.single(p=>p.columnName=="hi"); if there is a record in the database, it works well, but if there isn't , it will throw an exception, then , How could I know the record exists or not ? I don't think exception...
    Posted to SQL Server, SQL Server Express, and SqlDataSource Control (Forum) by Moosdau on 08-13-2007, 12:00 AM
    Filed under: Orcas, .NET 3.5, .NET, VS2008, linq, 3.5
  • LINQ to SQL Forum?

    Is there an official forum to discuss LINQ? Is this the right place? I've decided to dive in and play around with LINQ and I haven't been able to find much documentation as of yet and I'm coming up with several questions. I'm especially interested in using LINQ in BLL classes and what...
    Posted to Data Presentation Controls (Forum) by cyzfitz on 12-04-2007, 12:00 AM
    Filed under: .NET 3.5, linq, 3.5, ASP.NET 3.5, DataContext, linq to sql, Visual Studio 2008 LINQ to SQL
  • ddlProposalTypes' has a SelectedValue which is invalid because it does not exist in the list of items.

    PPDataContext db = new PPDataContext(); db.ObjectTrackingEnabled = false ; var eventTypes = from et in db.PP_Event_Types orderby et.SORT_ORDER, et.TITLE select new { eventType = et.EVENT_TYPE, title = et.TITLE }; ddlProposalTypes.DataSource = eventTypes; ddlProposalTypes.DataValueField = "eventType"...
    Posted to Web Forms (Forum) by irbanjit on 03-06-2008, 12:00 AM
    Filed under: .net, ASP.NET 3.5, .NET 3.5, linq liqdatasource, LinqDataSource, .net framework 3.5, 3.5, linq, VS2008 VS 2008 EXECUTABLE SIZE, linq to sql
  • inserting to details view

    I have a details view on my page which is linked to linq datasource. there is foreign key field in my table which I am not showing in the details view. I would like set that foreign key to value x when inserting a new record. how can do this.
    Posted to Data Presentation Controls (Forum) by irbanjit on 03-05-2008, 12:00 AM
    Filed under: 3.5, ASP.NET 3.5 Extensions, LINQ, LINQ : Update problem, LINQ : Return Value, linq to sql
Page 1 of 1 (4 items)