tag:blogger.com,1999:blog-6082652835152798567.post6734436597645898653..comments2024-03-28T00:58:12.736-07:00Comments on Sql server, .net and c# video tutorial: Part 17 - AsEnumerable and AsQueryable in LINQUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6082652835152798567.post-90622340944715435002020-07-06T00:22:38.303-07:002020-07-06T00:22:38.303-07:00Sir Please help me!!
I am getting following error
...<br />Sir Please help me!!<br />I am getting following error<br /><br /><br />'ConsoleApplication1.EmployeeDBDataContext' does not contain a definition for <br />'Employees2' and no extension method 'Employees2' accepting a first argument <br />of type 'ConsoleApplication1.EmployeeDBDataContext' could be found <br />(are you missing a using directive or an assembly reference?) <br /><br /><br />sunilhttps://www.blogger.com/profile/18132973157103530317noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-15261541877946073802019-11-21T04:00:13.111-08:002019-11-21T04:00:13.111-08:00To use LINQ To SQL to create queries on SQL Server...To use LINQ To SQL to create queries on SQL Server tables I have previously updated Visual Studio to add this functionality. Having done this, for example in a WPF application I proceed as follows ...<br /><br />1 In the Solution Explorer, right click on the project name.<br />2 Click on the Add> New item option.<br />3 Select the Data group and then click on the LINQ To SQL Classes option.<br /><br />This way the .dbml file is added and then I proceed with the programming and everything works perfectly.<br />I normally use this procedure without problems, for example in a WPF application, but if I try to do the same thing in a console application I cannot proceed because Visual Studio does not offer me the LINQ To SQL template, in the sense that this option is not present in the list of templates.<br />How can I solve this problem?<br />dodirohttps://www.blogger.com/profile/17540354771426359924noreply@blogger.com