|
|
|
|
|
| | Total Hits: 32 | Today: 0 | Author: Shivprasad koirala | Rating:  |
| |  This FAQ article is dedicated to LINQ to SQL. In this article we will see a basic example of LINQ to SQL, how to define 1-1 and 1-many relationship using LINQ, how we can optimize LINQ queries, execution of stored procedures using LINQ and finally we will see a simple CRUD example using LINQ to SQL. For past some days I was running small sprint to complete this marathon I hope you will like this article.... |
| | Total Hits: 77 | Today: 0 | Author: Shivprasad koirala | Rating:  |
| |  In this section we will look in to new features provided by .NET 4.0 framework. We have a glance on some important features, DLR, subsystems of DLR, dynamic object and expand objects. Please feel free to download my free 500 question and answer eBook which covers .NET 4.0 , ASP.NET , design patterns, silver light, LINQ, SQL Server , WCF , WPF, WWF@ http://www.questpond.com... |
| | Total Hits: 168 | Today: 0 | Author: Keith Brown | Rating:  |
| |  This month I'll answer more reader questions. I'll discuss Windows Communication Foundation Web services running under normal user accounts, and the use of split knowledge and dual control of keys for protecting credit card data. Q Why won't my simple Windows® Communication Foundation service start when I run it as a non-administrator? A First, let me say that it's good to hear that you're testing your code under a normal user account! This is an important aspect of testing that developers shoul... |
| | Total Hits: 243 | Today: 0 | | Rating:  |
| |  For months, developers have debated the superiority of VB.NET over C#, and vice versa. But are there any significant differences between the two? Putting syntax preferences aside, this article analyzes claims that one language is better than the other.... |
| | Total Hits: 74 | Today: 0 | Author: Ted Pattison | Rating:  |
| |  This month I'll discuss the use of delegates to execute a method in an asynchronous fashion. I'll assume that you already know the fundamentals of programming with delegates, but if not, you should read the December 2002 and January 2003 Basic Instincts columns.... |
| | Total Hits: 128 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  have a few tasks that I want to run asynchronously and simultaneously, and I want to wait for them all to finish before continuing. I've seen samples showing how to do this using Thread.Join, but those seem to conflict with the general recommendation to use the ThreadPool whenever possible rather than spinning up new threads. Is there a way to wait for operations queued to the ThreadPool to finish execution? A As you point out, the classic solution to this problem is to spawn a new thread for... |
| | Total Hits: 63 | Today: 0 | Author: Ken Spencer | Rating:  |
| |  In Visual Studio® .NET, how do you set the tab order of controls in an application? Is it similar to the way it was done in previous versions of Visual Basic® or did Microsoft leave out this feature? Not only did Microsoft not leave this feature out, they added it and many other features into the designer. The Windows® controls have a TabIndex property just like Visual Basic controls in the past. The question is, how do you set the index easily? Figure 1 shows a simple form with three textbox... |
| | Total Hits: 104 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  My digital camera allows me to take pictures using a "sepia" filter which results in photos that look like they were taken in the late 1800s. While this is cool, I'd rather take the pictures normally and then apply this change later on. I can probably do something like this in Digital Image Pro 10, but I'm working on my own photo utility library in .NET and was hoping to add this functionality. What's the best way to change the coloring of a bitmap? A There are a few ways to change the colors... |
| | Total Hits: 90 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  I'm trying to use a method that accepts a Stream as a parameter. However, the data I want to pass to that method is currently stored only as a string. Can you tell me what is the best way for me to pass the string to this method? A There's not necessarily a best way, but there are a few solutions. And as with many scenarios in which you're provided with multiple approaches, you need to weigh space demands against time demands to choose the most appropriate solution. For example, is the string... |
| | Total Hits: 80 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  I'm using a method from a third-party library that expects me to pass a Stream to it. I want to be able to trace that library's activities with my Stream in order to better understand some behavior in my application. Is there a way to do this? A You have several options. The first and simplest option is to make use of the classic Decorator design pattern. A decorator is an object that has the same interface as another object it contains. In object-oriented terms, it is an object that has an "... |
| | Total Hits: 128 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  I'm using the System.IO.Compression.GZipStream class in the Microsoft® .NET Framework 2.0 to compress data into a .gz file. When I open the archive in WinZip, it appears that the name of the file I compressed was not stored as I had expected it to be. How can I add the name to the .gz file? A The GZipStream class implements the GZIP file format as defined in RFC 1952. The GZIP file format makes use of the DEFLATE compression algorithm, detailed in RFC 1951, and simply defines a header and foo... |
| | Total Hits: 92 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  I want to do some work with large numbers, larger than the sizes allowed by UInt64. Does the Microsoft® .NET Framework have any support for this? A The base class libraries (BCL) don't expose publicly any big number libraries, although some of the cryptography-related classes do make use of an internal big number implementation. However, all is not lost. While you can search the Web to find a plethora of implementations in C#, C++, and a variety of other languages, it might not be necessary. ... |
| | Total Hits: 60 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  I'm using the System.IO.Compression.GZipStream class in the Microsoft® .NET Framework 2.0 to compress data into a .gz file. When I open the archive in WinZip, it appears that the name of the file I compressed was not stored as I had expected it to be. How can I add the name to the .gz file? The GZipStream class implements the GZIP file format as defined in RFC 1952. The GZIP file format makes use of the DEFLATE compression algorithm, detailed in RFC 1951, and simply defines a header and footer ... |
| | Total Hits: 55 | Today: 0 | Author: Microsoft Corporation | Rating:  |
| |  The Microsoft .NET Framework is a platform for building, deploying, and running Web Services and applications. It provides a highly productive, standards-based, multi-language environment for integrating existing investments with next-generation applications and services as well as the agility to solve the challenges of deployment and operation of Internet-scale applications. The .NET Framework consists of three main parts: the common language runtime, a hierarchical set of unified class librari... |
| | Total Hits: 35 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  When do I need to implement a finalizer on my class? Should I always do it, or only when I'm holding onto unmanaged resources? Should I always implement the IDisposable interface when I have a finalizer, and vice versa? Finalizers only need to be implemented when you hold onto resources that need cleaning up. For example, FileStream holds onto a native file handle and implements a finalizer so as to release the handle when the FileStream is garbage collected. Unfortunately, finalizers place a si... |
| | Total Hits: 36 | Today: 0 | Author: Stephen Toub | Rating:  |
| |  I'm copying a lot of large files in my application, and I'd like to give the user the option to cancel these actions. Can I use the same dialog that the shell provides when dragging and dropping files from one place to another? Alternatively, is there any way my application can receive status notifications during a file copy so that I can create my own progress dialog with an option to cancel?... |
| | Total Hits: 77 | Today: 0 | Author: Ken Spencer | Rating:  |
| |  The Web Services generator shown in the January 2003 Advanced Basics column left me wondering if I could create a tool that automatically generates proxy classes for an assembly. Is there any support in the Microsoft® .NET Framework for me to do this directly without using brute-force string concatenation for the entire process? Yes, you can and as you'll see, it's a good example of the flexibility and power of the .NET Framework. Not only can you dynamically load applications (including thos... |
| | Total Hits: 54 | Today: 0 | Author: Ken Spencer | Rating:  |
| |  While reading your column on debugging in the April issue, I realized I need to view the values of a DataSet in the debug window. It's too time-consuming to navigate the tree to find the value of a particular cell. Is there an easier way for this to be done? To demonstrate one approach to this problem, I took a program I created for the April column, did some tweaking, and added some debug code. Suppose you create a DataSet with one or more tables, as the code in Figure 1 does. Then you test ... |
| | Total Hits: 104 | Today: 0 | Author: Ken Spencer | Rating:  |
| |  Developers frequently ask me for clarification on Microsoft's strategy for the future with regard to COM+, Microsoft® Transaction Services (MTS) with its features of JIT activation and object pooling, Microsoft Message Queuing (MSMQ), and DCOM. What's in store for Web farms versus app servers versus ASP and component integration? Since everybody's clamoring for answers, let's take these questions one at a time. First, I'll deal with the COM+ and MTS issue.... |
| | Total Hits: 96 | Today: 0 | Author: Ken Spencer | Rating:  |
| |  This month I'll tackle a couple of questions that deal with objects. If at first they don't seem to be about objects, remember just about everything in the .NET Framework is a class that becomes an object when instantiated.... |
|
|
|
|
|
|
|
|
|
|
|
|
|