Browse by Tags

Related Posts

  • LinqDataSource and connection information

    I want to use the new LinqDataSource in one of my .NET 3.5 test applications. But I need the application to grab the connection information from the Web.config. My DAL is separate from the ASP.NET application so for obvious reasons putting the connectionstring in the DataContext is out of the question...
    Posted to Blinq Preview (Forum) by sparrez on 09-27-2007, 12:00 AM
    Filed under: linq, LinqDataSource, DataContext, ConnectionString
  • Linq partial method execution

    Hi. I'm trying to strip the date part from a DateTime object and store it with a generical date (1900/1/1) in the database field 'day_start' (datetime). I've used the ORM designer in VS 2008 to make the linq to sql bindings and it has generated the default: Dataclasses.designer.cs c#...
    Posted to Visual Studio 2008 (Forum) by alek.lynge on 11-07-2007, 12:00 AM
    Filed under: linq, Visual Studio 2008, LinqDataSource, vs 2008, orm designer, orm, linq to sql
  • Re: Linq partial method execution

    Hi. I did change the code so it looks like the following: if (! value .HasValue) return ; DateTime newval = new DateTime(1900, 1, 1); TimeSpan ts = new TimeSpan( value .Value.Hour, value .Value.Minute, 0); value = newval.Add(ts); But although the value of 'value' is changed now, that doesn't...
    Posted to Visual Studio 2008 (Forum) by alek.lynge on 11-08-2007, 12:00 AM
    Filed under: linq, LinqDataSource, vs 2008, vs 2008 beta 2, partial methods
  • 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
  • LINQ DataSource Insert

    I have a formview which is tied up to a LINQ datasource, both of which are created in the markup (aspx) page. I am able to insert records to my database without issue. The problem: I would like to timestamp the records as they are written into the database. A basic look at what my formview and datasource...
    Posted to Data Access and ObjectDataSource Control (Forum) by thomasjordan on 03-17-2008, 12:00 AM
    Filed under: OnInsert, Insert, DataSource, FormView, Linq, Linq to SQL, asp.NET 3.5, LinqDataSource
  • LinqDataSource & stored procs & select params

    Hi I have read that when using stored procs with the LinqDataSource, you need to use the Selecting Event eg: protected void linqDSReport_Selecting( object sender, LinqDataSourceSelectEventArgs e) { ADataContext aDataContext = new ADataContext(); var report = ADataContext.AReport(); e.Result = report...
    Posted to Data Access and ObjectDataSource Control (Forum) by Overmars on 05-28-2008, 12:00 AM
    Filed under: Linq, LinqDataSource
Page 1 of 1 (6 items)