background preloader

101 LINQ Samples

101 LINQ Samples

Running the command prompt from visual studio tools menu This article tells you how to run visual studio command prompt from inside the visual studio. What I wanted in Studio Steps: Open Visual Studio Go To "Menubar --> Tools --> External Tools" Click "Add" Enter Information: Title: Visual Studio 2008 Command PromptCommand: cmd.exeArguments: %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86 Click "Ok" and you are done. Note: If you have a different installation directory, the arguments you need will probably be different. I hope you find this shortcut as useful as I did.

Finding a file in TFS Deleting Users from Membership Summary During early phases of your Membership Web Site you will probably create many test users to verify your new application. As you start getting "real" members, you may not want the test members to clutter up the .Net security database. This article looks at removing users by logging into the database and running SQL directly, using the same method as the .Net membership provider. Test Users on the Membership Site During early phases of your Membership Web Site you will probably create many new test users to verify your new application. When you've finished verifying the functionality, chances are you'll have a whole load of test users who have "registered" with the site. Programmatically or by SQL ASP.NET pages can programmatically delete users using methods of the membership provider. The Membership.DeleteUser method calls a stored procedure in the ASP.NET database to remove the user. The User Tables Using the Delete Stored Procedure The first parameter is @ApplicationName . Summary

Cover Story: .NET Survival Guide In-Depth The 2011 .NET Survival Guide A look inside the critical technologies and tools that will shape .NET development over the next year. Since the arrival of Visual Studio 2010 and the Microsoft .NET Framework 4 in April 2010, the pace of advancement in the .NET development space has been nothing short of torrid. 2011 will be a critical year for many dev shops, as they look to commit to the tooling Microsoft released the year before. To help .NET developers cope, we look at seven distinct development areas and the technologies and trends shaping them in the year ahead. About the Author Michael Desmond is an editor and writer for 1105 Media's Enterprise Computing Group. URL Routing in ASP.NET 4 By Scott Mitchell Introduction In the .NET Framework 3.5 SP1, Microsoft introduced ASP.NET Routing, which decouples the URL of a resource from the physical file on the web server. In .NET 3.5 SP1, ASP.NET Routing was primarily designed for ASP.NET MVC applications, although as discussed in Using ASP.NET Routing Without ASP.NET MVC it is possible to implement ASP.NET Routing in a Web Forms application, as well. The good news is that ASP.NET 4 has greatly simplified ASP.NET Routing for Web Form applications by adding a number of classes and helper methods that can be used to encapsulate the aforementioned complexity. ASP.NET Routing Overview ASP.NET Routing cleanly decouples URLs from web page file names and can be used to create clean, terse, SEO-friendly URLs. In a nutshell, ASP.NET Routing allows a developer to define routing rules, which map a route pattern - such as Categories/CategoryName - to a class that handles the request. Step 0: Prerequisites And... that's it! Conclusion

Deborah's Developer MindScape If you are going to Visual Studio Live! in Las Vegas next week (March 10-14), I hope I will see you at my Visual Studio sessions. I am covering both the new Integrated Development Environment (IDE) and the many very cool new code editor features. If you want a sneak peak at the code … you can find it here. Enjoy! Check out my Pluralsight courses! Tweet This is a continuation of the World's Simplest AngularJS Example in Visual Studio post. Most .NET developers understand data binding from Windows Forms, Web Forms, or XAML. For example, in Windows Forms you can bind a LastNameTextbox control's Text property to a LastName property of a Customer class (or LastName field in a data source). Angular provides this same type of two-way data binding. The key to data binding with Angular is the ng-Model directive. Let's try some very simple data binding: <! The above code sets the ng-model directive as an attribute on the input tag. Run it, and you get: Enter some text, and it appears as follows: <! Run.

.NET 4.5 Improvements for Cloud and Server Applications - Somasegar's WebLog I’ve had multiple meetings recently with customers and press where the topic of .NET development has come up, particularly as it relates to the cloud and server. They’ve heard about the extensive work we’ve done with Visual Studio 11 to enable the client-side development of Metro style apps for Windows 8 using C#, Visual Basic, C++, and JavaScript, and they’re curious to learn what improvements have been made for server-side development using .NET From my perspective, .NET is already the richest and most productive way for developers to create server-side applications that run in the cloud and on premises, and to do so with symmetry across both. With .NET 4 available today on Windows Server and in Windows Azure, developers have in place the languages, libraries, frameworks, and capabilities necessary to create next-generation solutions, whether for the enterprise or for a consumer application. And things only get better with .NET 4.5. Web Data Services It is also highly productive. Workflow

Introduction - ASP.NET Tutorial Welcome to this ASP.NET tutorial. According to Microsoft, "ASP.NET is a technology for building powerful, dynamic Web applications and is part of the .NET Framework". This tutorial will teach you ASP.NET from scratch, and no knowledge of any kind of serverside scripting is required. Basic HTML and CSS knowledge is preferable. Having worked with Classic ASP or PHP won't give you much of an advantage, since ASP.NET is a whole new way of doing things. .NET is language independent, which means you can use any .NET supported language to make .NET applications. One of the main differences between ASP.NET and Classic ASP/PHP is the fact that ASP.NET is compiled, while Classic ASP is always interpreted. This tutorial will use the free Visual Studio Express 2012 IDE from Microsoft.

json2csharp - generate c# classes from json

Related: