A Data Access Layer to Persist Business Objects Using Attributes and Reflection
Details Related Types
Site:  The Code Project
Original URL:  http://www.codeproject.com/csharp/dal1.asp
Summary:
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.
System.Attribute
System.AttributeTargets
System.AttributeUsageAttribute
System.Collections.ArrayList
System.Data.DataSet
System.Data.DataTable
System.Data.DbType
System.Data.IDbCommand
System.Data.IDbConnection
System.DateTime
System.Reflection.PropertyInfo
System.Type
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com