bclubb wrote:
Other people may know exactly what you are talking about, but I'm a little lost
. What are you trying to do? Could you post an example of what you are wanting to implement instead in LLBLGen.
Heh. Re-reading my original post, I wasn't very clear about what I was trying to do.
I often use SQL scripting against sysobjects and syscolumns to check whether all the tables in my database have certain columns. For example, in one project I wanted to make sure ALL tables had the following columns:
created_by_user_id
created_date
last_updated_by_user_id
last_updated_date
Each time I created a series of new tables, I wanted an easy way to see which tables didn't have them, so I wrote scripts against the sys* tables to determine whether any of them were missing fields. I also write scripts to add the fields to the tables that didn't have them.
I can post some SQL code tomorrow (I don't have it handy) if that still doesn't make sense.
Anyway, I was thinking about creating views of those tables and mapping them to entities. The I could use dynamic queries to do this sort of maintenance. But that's as far as my thinking has gone since I thought if it right before the end of the day today.