Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decorating with Metadata

Status
Not open for further replies.

pdbowling

Programmer
Mar 28, 2003
267
US
Hello everyone.

Does anyone know where I can get a sample of how to Decorate a class with a metadata class? Google turned up a lot of java and ruby references but I didn't see much for C sharp.

MSDN.com listed all of the metadata attributes and methods but I didn't see a good sample.

I'm using Visual Studio 2005.

Thanks all
Patrick
 
I've done this, and c# attributes will only take you so far. You'll have no problems specifying datatypes, min/max lengths, etc. But if you want to include any business rules, foreign keys, etc., then you'll run into 'issues' with this approach.

Maybe this is all you need, but if you need full metadata, then you'll probably need to write a set of classes to retrieve/maintain that info.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top