Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Saturday, November 22, 2008

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > .NET Framework > Code Generation
Search:
What's New - What's Hot


How to Generate Random Numbers in ASP.NET and .NET Framework        
Total Hits: 43  |  Today: 1 Author: Handy Chang       Rating:  
Read Reviews | Write Review |   Your Rating: 

Random number generation is a common programming endeavor, but many developers are unaware of the true nature of the random numbers generated by a system. In this article I would explain about how to generating a random numbers and how to use them in your .NET applications
Generating random numbers is often a hot topic for programmers. The reason is that seemingly random numbers are most often not genuinely random. This is due to the deterministic algorithm utilized by a platform like .NET. D...

Top 10 Must-Have Features in O/R Mapping Tools        
Total Hits: 140  |  Today: 0 Author: Iqbal Khan       Rating:  
Read Reviews | Write Review |   Your Rating: 

O/R mapping tools are becoming more popular each day and people are realizing the productivity gain they provide to developers. Yet, many people don’t know enough about O/R mapping to consider using these tools and many others are weary of using any code generators (including O/R mapping tools). In this article, I will try to educate you about the various important features that a good O/R mapping tool would provide you and how it can be beneficial to you. I am not discussing any particular O/R ...

Code Generators with .NET        
Total Hits: 254  |  Today: 0 Author: Pierre Couzy       Rating:  
Read Reviews | Write Review |   Your Rating: 

Code generators are part of your everyday life, even if you don't realize it. Pierre Couzy shows you how you can leverage them in your projects. Imagine you're working in a company where DBAs rule the world: You can't build an application that just "goes to Oracle to fetch some records." You have to rely only on stored procedures, because there is a security layer at that level. Building your app typically involves the following steps:
Create a bunch of stored procedures.
Create C# class...

Using Reflection Emit to Cache .NET Assemblies        
Total Hits: 272  |  Today: 1       Rating:  
Read Reviews | Write Review |   Your Rating: 

There are few automated ways of caching methods within a Microsoft .NET Assembly or Web Service without writing a significant amount of the logic into the application. And sometimes, if the Web Service or .NET Assembly is from a third party, it isn't possible. This article outlines a non-intrusive caching solution that uses Reflection Emit in the Microsoft .NET Framework. Reflection Emit is the ability to generate assemblies, types, methods, and MSIL (Microsoft Intermediate Language) on the fly ...

Dynamically Generating PDFs in .NET        
Total Hits: 40  |  Today: 0 Author: James Crowley       Rating:  
Read Reviews | Write Review |   Your Rating: 

It's perfectly possible to generate a PDF from scratch, using a library such as iTextSharp, a port of a free Java PDF library. However, it can be hard work defining all the code you need to generate the layout you're after, and impossible for someone to tweak the layout without going back to the developer.

One alternative, using the same free library, is instead to design a PDF document in a WYSIWYG environment such as Adobe Designer, and define some dynamic fields within the document. Yo...

Coding an AjaxPro.NET Based Search Engine for Your Website        
Total Hits: 60  |  Today: 1 Author: Xianzhong Zhu       Rating:  
Read Reviews | Write Review |   Your Rating: 

In yesterday's article, we began building a search engine with AJAX functionality to be embedded into a .NET-based web site. We set up the frameworks we planned to use and designed the database. In this part, the conclusion to the tutorial, we will get into the client- and server-side design, add a couple of optimizations to the code, and then test out our new search engine....

Mock Objects to the Rescue! Test Your .NET Code with NMock        
Total Hits: 16  |  Today: 0 Author: Mark Seemann       Rating:  
Read Reviews | Write Review |   Your Rating: 

Have you ever considered implementing unit tests for a project but dismissed the idea because the module you wanted to test either had too many dependencies or it was so difficult to isolate the unit itself that the tests started to look like integration tests? Or perhaps setting up and configuring all the external dependencies was impractical or downright impossible to achieve within your time constraints or budgets?
Mock objects can help you overcome these types of obstacles and, as an adde...

Database Helper v 1.0.0        
Total Hits: 7  |  Today: 0 Author: hdv212       Rating:  
Read Reviews | Write Review |   Your Rating: 

When we want to create database applications, we must dealing with database repeatedly, then in our code level, for each interaction with database, we must create connection, then define command that will be execute in database and finally get results (if has result). However it's trouble to dealing with database level code in our application code and it's not best practice for high performance database applications. For best result and create database applications in less time and higher perfor...

Yet Another Code Generator        
Total Hits: 11  |  Today: 0 Author: Stein Borge       Rating:  
Read Reviews | Write Review |   Your Rating: 

What is Yet Another Code Generator (YACGEN)?
YACGEN is an template-driven code generator. Features include:
* YACGEN reads database schemas and allows for almost unlimited custom attributes to be assigned to individual objects (databases, tables and columns)
* YACGEN schemas can assign values via custom Python code executed during schema import and update
* schemas can include attributes that identify object relationships
* Generates output from user templates
...

Enhanced Resource File Code Generator - Type-safe Formatted Strings        
Total Hits: 12  |  Today: 0 Author: Tristen Fielding       Rating:  
Read Reviews | Write Review |   Your Rating: 

With the release of .NET 2.0, Microsoft provides a type-safe (code-behind) wrapper class that wraps resource files. This is a huge improvement over the old error-prone way of accessing resources. We can now access resources like images, icons, files and strings just by using the resource’s identifier as a property of this wrapper class. For example, suppose we have an image file called MyCompanyLogo.png and a resource file called Images.resx....

Write Mobile Agents In .NET To Roam And Interact On Your Network        
Total Hits: 5  |  Today: 0 Author: Matt Neely       Rating:  
Read Reviews | Write Review |   Your Rating: 

Recently I had the opportunity to return to school to complete a graduate degree. This experience made me realize two important things: there are some cool ideas in academia that seem to never find the light of day in the professional setting, and the academic world at large is not yet very familiar with the Microsoft® .NET Framework. Thus was born my goal of introducing lesser-known ideas to the professional masses while introducing the .NET Framework to the academic world. One particular conce...

Dynamic Code Integration with CodeDom        
Total Hits: 12  |  Today: 0 Author: Crawfis       Rating:  
Read Reviews | Write Review |   Your Rating: 

I occasionally implement a program where I wish I could either change some parameters interactively or re-write a portion of code interactively. The parameters are easily solved with existing GUI components. The .NET framework, with the System.CodeDom namespace, provides a nice suite of tools for the latter. Several tutorials on using the CodeDom document exist, with most of them focusing on creating a source code file. In .NET 2.0, support was added to compile code from an internal string. This...

Interoperating with Unmanaged Code - PInvoke        
Total Hits: 9  |  Today: 0 Author: Bean Software       Rating:  
Read Reviews | Write Review |   Your Rating: 

At the time .NET Framework is firstly introduced by Microsoft, the concept of managed code and unmanaged code as two different programming models is introduced as well. Microsoft defines that managed code is the code generated by the .NET Framework and could be executed by the common language runtime (CLR). At the other hand the unmanaged code is any other code that doesn't match the pervious definition. As a result, all the code created and generated before the .NET Framework is released consid...

Source code generator for any data type        
Total Hits: 14  |  Today: 0 Author: Guillaume Hanique       Rating:  
Read Reviews | Write Review |   Your Rating: 

Do you sometimes need a class for a complex data type? I do, but I think it too much work to type it myself. Did you know the .NET Framework has a tool to generate classes from xsd-files? It does, but it requires a command prompt and every time you change the xml-schema you have to run it again. Did you know Visual Studio can work with Custom Tools? It does, but how to create one can be quite a mystery, at least, it was to me. This article will describe how to create a custom tool, install it an...

Rewrite MSIL Code on the Fly with the .NET Framework Profiling API        
Total Hits: 14  |  Today: 0 Author: Aleksandr Mikunov       Rating:  
Read Reviews | Write Review |   Your Rating: 

In this article, the author shows how to dynamically rewrite Microsoft Intermediate Language code on the fly using the Profiling API of the CLR. Unlike approaches based on Reflection.Emit, this scheme works with the existing assemblies and doesn't require the creation of proxy or dynamic assemblies. The need for IL code rewriting emerges when you want to make your changes transparent to the client and preserve the identity of classes. This technique can be used for creation of interceptors, pre-...

Use Managed Code To Generate A Secure Audit Trail        
Total Hits: 6  |  Today: 0 Author: Mark Novak       Rating:  
Read Reviews | Write Review |   Your Rating: 

A uditing is indispensable for security-related monitoring of any server-based application, from e-mail servers to databases to Web servers. In today's security-conscious environments, a reliable audit trail is a valuable forensic tool and often a legal requirement for certain industries. For example, regulations such as Sarbanes-Oxley and the Health Insurance Portability and Accountability Act of 1996 (HIPAA) require audit trails for certain systems, applications, and data. The Windows Server™ ...

Keep Your Code Running with the Reliability Features of the .NET Framework        
Total Hits: 12  |  Today: 0 Author: Stephen Toub       Rating:  
Read Reviews | Write Review |   Your Rating: 

Do you write reliable managed code? Obviously if your manager asks you that question, you'll want the answer to be yes. You use try/finally blocks to release resources deterministically and you eagerly dispose all of your disposable objects. So, of course, your code is reliable, right? A job well done?
Regrettably, that's not the whole story. In the context of writing managed code, reliability requires the capacity to execute a sequence of operations in a deterministic way, even under excepti...

IronPython        
Total Hits: 5  |  Today: 0 Author: James Schementi       Rating:  
Read Reviews | Write Review |   Your Rating: 

IronPython is the code name for an implementation of the Python programming language written by the CLR team at Microsoft. IronPython runs on the Microsoft® .NET Framework and supports an interactive console with fully dynamic compilation. It is well integrated with the rest of the .NET Framework and makes all .NET libraries easily available to Python programmers, while maintaining full compatibility with the Python language.
This column will give a brief overview of Python and what sets dyna...

Write Code Once For Both Mobile And Desktop Apps        
Total Hits: 11  |  Today: 0 Author: Daniel Moth       Rating:  
Read Reviews | Write Review |   Your Rating: 

For the last several years, while developers were building Microsoft® .NET Framework client applications for Windows®, many had no idea that they could also have been creating applications for Windows Mobile® using the same skills and toolsets. But Windows Mobile wasn’t as widespread in the enterprise then, so the need to write custom applications targeting mobile devices was not as great. Today, there’s a huge demand and many desktop developers are getting their feet wet with mobile development...

Code Generation in .NET        
Total Hits: 10  |  Today: 0 Author: AzamSharp       Rating:  
Read Reviews | Write Review |   Your Rating: 

How many times you have repeated the same code over and over and over again? Sometimes we all really get tired of writing the same old code. In this article I will introduce to you Code Generation, which means code will write code for you. We will be using XSLT to create a simple template to generate entity classes based on the XML file....


1  2  3  Next >> 


DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net