.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Linq to SQL Template missing

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :ASP.Net

I have VS2008 SP1.. I have a web site that I want to add some Linq to SQL functionality, where is the template located? I can not find it anywhere in the web site or projects templates. What do I need to do to get this template for VS2008?


View Complete Post

More Related Resource Links

Silverlight-enabled WCFservice template is missing after installing Silverlight 4 Tools

It looks like after installing the Silverlight 4 tools the Silverlight-enabled WCF service template is missing.  How do I get it back?  I am using VS2010.

Missing a cast in Linq Expression

 Hi, My code is: var results = from XPathNavigator res in iterator  where res.Select(xpath).Current.Value.Contains(param) select res; where iterator is XPathNodeIterator. I get the next error(on where ): Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<System.Xml.XPath.XPathNavigator>' to 'System.Linq.IOrderedEnumerable<System.Xml.XPath.XPathNavigator>'. An explicit conversion exists (are you missing a cast?) Where am I  missing a cast? Thanks, katzraya        

Field method missing with LINQ query

H, I want to access the data from datatable object. When i trying to get the fieldslist usng "Field" method. But I could not find the method with my table object.  Eventhoguh i forcibly write a method and trying to access the fields, It is giving the below error for the first join in query. Rest of the lines are fine. What is the reason behind it. The errro: "Error 2 'LINQ2DB.SP_VS_OP' does not contain a definition for 'Field' and the best extension method overload 'System.Data.DataRowExtensions.Field<T>(System.Data.DataRow, string)' has some invalid arguments" What is the meaningof the error. Shall i do any other changes in the query line?                         var QueryChnl = from oSPOP in SPOP.AsEnumerable()                        join oDiscChannel in DiscChannel.AsEnumerable() on oSPOP.Field<int>("spid") equals oDiscChannel.Field<int>("SPID")                        join oChannel in Channel.AsEnumerable() on oDiscChannel.Field<in

Visual Studio 2010 - Missing some template items

Hi All ! I saw in a slideshow the new features of Sharepoint at VS2010.Some elements that I saw there is: Application Page. Well, this element and some others like Linq to Sharepoint is missing on my VS2010 Ultimate. After all I decided to install the VS2010 at the server containing the Sharepoint 2010 and the missing elements is still the same. Can someone help me ?

Missing Custom Control Library Project Template in Visual C# 2010 Express?


I am using Microsoft Visual C# 2010 Express Version 10.0.30319.1 RTMRel and I want to add a Project for a WPF Custom Controls library. Note: The WPF Custom Control Item Template is included and can be added to a WPF Application project.

Does anyone know:

  1. Should the WPF Custom Control Library Template be part of this application edition?
  2. Where is the online documentation that states exactly which features are and are not included in each edition?
  3. What can be recomended as a work around?


Publishing Portal Missing Team Site Template



I created a new site collection and set the root site as a publishing portal.  I then went into "manage site features" under "Site Actions" and activated the "Team Collaboration Lists" feature.  However I cannot find the "Team Site" template when I try to create a new site.  Is there a feature I'm missing? 



Missing MVC 2 Web Application template


Hi, I'm trying to learn ASP.NET MVC, but have discovered that I don't even have the ASP.NET MVC 2 Web Application template installed.  I'm using VS 2010 Ultimate (10.0.30319.1 RTMRel).  How do I get this installed so I can begin?

- Robert -

Business Intelligence Center Template Missing


Have installed SP 2010 on Windows Server 2000 and SQL Server 2008 R2.

Everything seems to be working fine.  I have gone to my top level site in my default web collection (Port 80) and under Page Laytou and Site Template Settings have allowed any subsite to use any site template.  In that list, I can definately see "Business Intelligence Center (All)".

However, when I go to create a new site and it asks me for a template, I don't see the "Busines Intelligence Center (All)" template.   Thinking this was a bug I deleted the web application and recreated it and a site collection and the same thing.  

So just for fun, I created a 2nd web appliction on Port 90 and created the same type of site collection and everything works fine.  I can add the BI template.

Am I missing something here?
My Ramblings @ http://alanwhitehouse.wordpress.com

Missing "Include Content" checkbox when creating Project Workspace template.

I'm trying to use an existing project workspace to create a custom template. This workspace includes standard content that I'd like to include in the template for use in future project workspaces. However, when I go to "Save site as template" I don't get the option to "Include Content" like I see when creating a template for a site or sub-site. Any clue why I can't include content for a project workspace template? MOSS 2007.

missing "linq" assembly? tried several fixes and no luck


Newbie at this so pardon me from the onset...

I'm building a site using VWD 2010 Express.  The site seems to run fine in the browser but when debugging I get the following errors:

Error 1 c:\....\Site.master.cs(3): error CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)  (I get this message 4 times)

Error 5 The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) 

I've gone in to the Web.config and added the following:


<add assembly

missing edit template in Form Library Advanced Settings



I just noticed that the ability to edit an infopath (published) form from the advanced settings within the form library is missing.  I looked at several other form libraries and noticed the same problem.  I am the site collection admin, and my rights have not changed.   How would the link to edit a pubished form dissapear from the advanced settings page?



Missing Entity Framework Template in Visual Studio ASP.NET 4.0


I just installed Visual Studio 2010 on my Windows 7 laptop in order to start learning the Entity Framework.  For some reason that I haven't been able to figure out, when I try to add a new item, there is no template for the ADO.NET Entity Framework.   Can anyone offer me any help as to why the template doesn't exist and what I need to do in order to get the template?


ps. I came across a post that stated that in order restore the template that I needed to do the following:

 devenv /installvstemplates

This didn't help.

Linq to SharePoint(SPMetal) Missing "Author" and "Editor"


So I have also noticed that using the SPMetal tool the CreatedBy(Author) and ModifiedBy(Editor) fields are missing from Entity Model generated by the SPMetal utility. So here is a nice post on manually adding them (http://blogs.microsoft.co.il/blogs/itaysk/archive/2010/02/19/spmetal-missing-created-by-modified-by-fields.aspx), but does anyone know if this is going to be fixed in the future or if there is a reason why they are not generated?


Status List WebPart or KPIListWebPart missing when create sites based in a site template that has it


Hi Everyone,

I have a site collection in SharePoint server 2010, and within this site collection I have a site. This site has KPIListWebPart or Status List WebPart. I have added this WebPart through SPD 2010, because through SharePoint you cannot add this particular WebPart.

The problem is the following:

The site (with the Status List WebPart) has to be a Site Template, in order to allow the users to create sites as needed. In the site, the Status List WebPart works perfectly, but when I create a new site based in the site template, the Status List WebPart is missing. 

Any idea why is it happening?


Thanks in advance and best regards,


Playing with Linq grouping: GroupByMany?

One of its features is grouping. Many people understand grouping like it is defined in Sql. Linq is implementing grouping quite the same way. Let's discover this syntax and how to make consecutive groups easier.

LINQ : Implementing IN and NOT IN

I got tried of typing

var result = from s in source
where items.Contains(s)
select s;and so I implemented the IN and NOT IN methods as extension methods:

101 LINQ Samples Tutorials

101 LINQ Example with sample code snippets....This sample prints each element of an input integer array whose value is less than 5. The sample uses a query expression to create a new sequence of integers and then iterates over each element in the sequence, printing its value
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend