| A Data Access Layer to Persist Business Objects Using Attributes and Reflection |
| The Code Project |
| Then I came up with the idea of creating classes that would say how they should be persisted in the database. I would use attributes to say what database table my object should be persisted to, as well as other attributes to say what are the properties that should be mapped to table columns. From now on to update my code after a change in the solution I would only change the business object class. |
|
| An Introduction to Custom Attributes and Reflection in VB.NET |
| dotnet.za.net |
| .NET provides a totally new language construct called "Attributes". Attributes allow the developer to specify information about a class, method, parameter etc. This information could change runtime behaviour, provide details about the usage of a class, or expose organisational information to the development team. Custom attributes allow the programmer to specify custom details about a programming construct that is both directly visible and available when reading the code (as a comment is), but is also available through the .NET framework. |
|
| Attributes in .NET |
| C#Today |
| Developers have traditionally been adopting a functional approach to programming. Everything is a function or method, and functionality is explicitly asked for. While this works for building a monolith style application, component based programming doesnt exactly fit into this methodology. Loosely coupled systems are now being advocated over closely coupled systems. Furthermore, declarative and attribute based programming is gaining popularity where attributes can be declared on a class that annotate the behavior of the code and communicate this to the runtime and other objects. The .NET framework brings mainstream attribute based programming to the Windows environment by allowing the use of predefined and custom attributes on classes, and most code elements. In this article, we will look into the support that the .NET framework provides for attribute based programming and we will demonstrate the use of custom attributes by building a sample application that can trace all calls to your component by merely declaring a single attribute. |
|
| Creating and Using Attributes |
| The Code Project |
| In this article I hope to show you what attributes are, how to use existing attributes, and how to create your own attributes to use in your own projects. |
|
| Custom Attributes with .NET |
| DotNetNut |
| Write custom attributes for code documentation. Get yourself acquainted with attributes, how they work, how to apply them, and how to read them from assembly metadata. This article will open your eyes to how .NET uses attributes and the possible use of attributes in your own applications. |
|
| Custom Permissions |
| C#Today |
| Any multi user system needs to have a concept of security to protect one users data from another. This security element could be anything from granting or denying a user access to a file, a network share, or certain entities in a database. These security mechanisms are controlled via the use of Permissions. Before the advent of .NET, using permissions in application code was hard, but now the framework allows a very open and extensible permission architecture. In this article, the third of the week's security-based articles, Kaushal Sanghavi explores the support that the .NET framework offers for working with permissions, and demonstrate how developers can design their own custom permissions to control access to protected data. |
|
| Declarative Transactions using ADO.NET and Without Enterprise Services |
| The Code Project |
| Sometimes it is nice to prototype up a simple database application. This code may help, by providing the automatic transactional model of COM+ in a non-COM+ environment. This example uses "Interception" to provide automatic transactioning support for non-COM+ classes. |
|
| Handling Client Files in ASP.NET Whidbey |
| MSDN |
| Understand the technical issues involved when working with resource files with ASP.NET 1.x, and see how this will improve with ASP.NET Whidbey. |
|