Most Recently Added
|
|
|
StyleCop - a new tool
8/4/2008 1:24:20 PM
|
|
StyleCop is a new tool that Microsoft has released - C# style and formatting analysis for maintaining consistent and standard code. It's not a code analysis tool like FXCop; however it's a Code Style analysis tool- this tool was being used internally by the MS team. They have decided to release this as an add-on to help the developer community.
Read More....
|
|
|
|
|
Request-scoped DataContext
7/31/2008 11:43:12 AM
|
|
The "life management" of DataContext has motivated many design patterns with respect to LinqToSql. DataContext is central to LinqToSql and it's life needs to be controlled correctly so you can submit changes to your entities to the Datasource. This is a big change from how data access patterns are being done traditionally where you don't need to hold on to the instance of your Data Access Layer, instead you move around your entity instances.
Author Keith Craig in this blog creates a pattern where the DataContext instance is Request Scoped: the DataContex instance gets tied to the HttpContext object- the blog comes with explanation and complete code examples.
Read More....
|
|
|
|
|
Why choose Linq To SQL?
7/25/2008 1:15:32 PM
|
|
Linq To SQL has been out there released for a few months now and everybody who is desigining a new .Net application is probably considering it as an option for their data access. Linq has been hyped up by Microsoft for a long time now ; it has aroused people's curiosity very much- with Linq To Sql in the market , everybody is trying to see if they can adapt it in their architecture for better , faster results.
In this 2 series blog by Hilton Giesenow he discusses at length the Performance as well as Security considerations on using Linq as a design choice for your Business Layer as well as Data Access Layer. He also discusses how Linq To Sql's dynamic query can be intelligently mixed with stored procedures to get better results. He gives several code example to prove his ideas along with code snippets of what Linq To Sql generates.
Read both the blogs if you are seriously considering Linq To Sql as an option -
Read More....
|
|
|
|
|
Linq To LDAP
6/27/2008 6:52:49 PM
|
|
In this blog author Bart De Smet creates a sample application that queries the LDAP directory through LINQ query syntax. Another great example of how LINQ can be used to query any database- internally filters are created by the compiler in the domain specific language. APIs are available internally query these databases- Linq query syntax is the same no matter which database , the internal query generated is specific to the database type.
Read More....
|
|
|
|
|
Introducing Linq to Amazon
6/26/2008 2:53:22 PM
|
|
This Blog queries a Amazon service for book titles using LINQ. You get a concept of Linq To Amazon and Linq To Objects. The code clearly exhibits legibility of LINQ. This blog is written by Fabrice MARGUERIE . He is also the author of a book called Linq in Action.
Read More....
|
|
|
|
|
Linq To Flickr
6/26/2008 12:41:51 PM
|
|
This interesting blog uses LINQ with FlickrNet objects which wrap up the Flickr API and gets back a photo collection based on tag , date and title. The blog gives a sample that gives a first hand practical use of LINQ and it's simplicity. The blog is titled as Bashmohandes. The blog gives a clear C# example of implementation of IQueryable interface.
Read More....
|
|
|
|
|
Powerpoint on .Net framework 3.5
6/25/2008 10:49:26 AM
|
This power point is titled as ASP.Net 3.5 New Features. The new ASP.net 3.5 , while retaining all the core 2.0 features, has added several features . This powerpoint goes through each one of them briefly and clearly. The picture on the left which is a screenshot from the powerpoint actually lists out the topics the powerpoint discusses. This powerpoint is put together by Svetlin Nakov of National Academy Of Software Development . A picture is worth a thousand words - it's easier and more effective to learn through presentations . Reading long articles and documentations can be difficult and time consuming. You can go through the presentation and get a basic idea of the new features.
Read More....
|
|
|
|
|
Green Bits and Red Bits
6/25/2008 7:20:44 AM
|
|
Although this is a slightly older blog however it's worth bringing due
to the quality of the content it has. Daniel Moth here has shown with
this image in his blog what Microsoft called Green Bits and Red Bits. Since the framework 3.5 still contains the assemblies for 2.0 and 3.0 , the Red Bits are the ones that still exist along with the 3.5 assembleis. The Green Bits are the ones that actually are the new assemblies. The author here lists out all the Green Bits with mentions to the Assembly names and also has an image that pictorially shows the Green and the Red bits.
Read More....
|
|
|
|
|
What's included in .Net framework 3.0 , 3.5 ?
6/25/2008 5:09:47 AM
|
|
One of the few questions that one would ask while upgrading from the older versions of .Net framework to the new 3.0 or 3.5 are what do these include ? Why should we or should not we upgrade?
The author in this blog summarizes the assemblies that come as part of the 3.0 as well as the 3.5 versions. The fact that 3.0 and 3.5 both include the 2.0 assemblies explains the multi targetting support that comes with these new versions . It is important to understand what kind of runtime both 3.0 and 3.5 are - before we consider upgrading our applications to any one of these versions. It is undoubtedly a big bonus to be able to target the 2.0 version also with new 3.0 or 3.5 runtime. That's exactly what this blog explains , the composition of the new 3.0 and 3.5 runtime.
Read More....
|
|
|
|
|
Allowing Visitors to Create New User Accounts
6/20/2008 10:42:30 AM
|
|
This article at CodeIdol goes in detail how to use the CreateUserWizard and the Membership API to implement registration of a user and sending either a HTML or Text email notification using MailDefinition template. The article is quite thorough in going through all the steps with code examples.
It goes through all the properties of the CreateUserWzard controls to set up their look and feel. It also discusses the Email feature in detail. One very interesting aspect of the article is it gives tips in between in a box which are useful. For Example:
"
To add a text file or HTML page to your website, right-click on the project name in the Solution Explorer and choose the Add New Item menu option. In the Add New Item dialog box, you'll find Text file and HTML page file types.
"
Read More....
|
|
|
|
|
MailDefinition and User Registration
6/20/2008 8:27:35 AM
|
|
In this article author Craig Shaw uses the Membership API, CreateWizard control and the MaiDefinition template to control the process of User activation after registration. The Membership API and controls offer a lot of basic functionality that can be reused and tailored very quickly to put together a reasonable and professional quality authentication and authorization mechanism.
The author gives clear code examples in C# to go from the beginning to end where a user is created and inactivated in the beginning. An email is triggered which sends a URL to activate the User. Then the User is activated after he clicks on the URL. All code examples for events and web configuration are listed clearly. The OnSendingMail event raised by CreateUserWizard is also discussed in detail.
Read More....
|
|
|
|
|
MailDefinition template in ASP.Net 2.0
6/20/2008 7:49:09 AM
|
|
This blog named as Thoughts.Generate() uses the MailDefinition template in ASP.Net 2.0 to send emails using other controls other than the CreateUserWizard control. The MailDefinition templates are typically used in Membership API where mails are sent after a user is registered or an email needs to be sent for password recovery in forgot password implementation. This feature of Membership did not get as much attention because it is mostly used in relation with the Membership related controls.
However in this blog the author takes this feature and creates a generic model associated with any other control that can trigger and send emails based on the configuration with this template.
Although this blog is a little old, however it discusses a very good feature of the framework that can be very well used even now; The MailDefinition tag looks like this:
<MailDefinition
BodyFileName="~/Registrered.txt"
From="http://www.dotnettopics.com"
Subject="Thanks for registering with DotNetTopics">
</MailDefinition>
Read More....
|
|
|
|
|
Code Smith Code Generator
6/18/2008 6:47:57 AM
|
|
Code Smith has made a name for itself in the .Net community ; however there is also that portion of the developer community which still does not understand the importance of tools like this , how it can improve coding speed and efficiency. Most projects have the simple need for Objects that need to map against the relational database schema. This task can become very mechanical , mundane and arduous if you had a larger database. A tool like Code Smith can simplify this with a few clicks you can generate a custom object against a database table that generates properties that map to columns.
Code Smith also comes with the feature of templates that allows you to create VB Script templates that can customize the code generation. If you have VB / VB script background, it's a no brainer. Otherwise the learning curve is very small.
It is also priced very reasonable: Standard Edition at : $99 and Professional Edition at $399. Within a few hours of using CodeSmith you can, recover the cost of buying the product.
The only downside is if you need to make modifications and additions to the generated code, you would have to do it yourself. However it definitely saves the time required to generate the initial repetitive code which can be a major cost saving in itself.
Read More....
|
|
|
|
|
Image Scraper with Linq To XML
6/17/2008 10:04:58 AM
|
|
There are thousands of great blogs being written on the web, there is so much to learn from them. This blog is another one of those , the author titles the blog as Hacky Hacky . Here the author takes the example of HtmlAgilityPack, an open source CodePlex project for URL scraping and uses LINQ To XML syntax to scrape the URL, convert it to XML document and traverse through the document to find all the images on the URL.
Read More....
|
|
|
|
|
Summary of the New C# 3.0 features
6/17/2008 6:56:12 AM
|
|
In this personal website of Jon Skeet he lists out all the new features of C# 3.0 language. The features that he summarises with examples are:
- Automatic properties
- Object and collection initializers
- Anonymous types
- Lambda expressions
- Expression trees
- Extension methods
- Query expressions
Jon Skeet is also the author of a C# book - C# in depth .
Read More....
|
|
|
|