ShadowGopher
March 3rd, 2003, 10:39 AM
I'm not sure if this is even the right forum for this question. Using the tools provided with Visual Studio.Net, is there a way to create a class file from a database table where the SET and GET method accessors are automatically generated?
Here is what I'm trying to do. I have a third party rule engine that I'm using for data validation of our client's data that we import into our database. Since each rule needs to operate on one row of data, I'm creating a class for each table and accessor methods for each column within that table. Therefore, when the business users create their rules, they can refer to the lastname column in the employee table as Employee.LastName. I've got about 30 tables and a little over 300 columns. I prefer not to have to code every function by hand. It seems like an easy enough process to generate this type of class so I think somebody should have had this requirement before. Does anyone know of a way to automatically generate these classes, properties, and methods?
Thanks,
Mark Brown
Here is what I'm trying to do. I have a third party rule engine that I'm using for data validation of our client's data that we import into our database. Since each rule needs to operate on one row of data, I'm creating a class for each table and accessor methods for each column within that table. Therefore, when the business users create their rules, they can refer to the lastname column in the employee table as Employee.LastName. I've got about 30 tables and a little over 300 columns. I prefer not to have to code every function by hand. It seems like an easy enough process to generate this type of class so I think somebody should have had this requirement before. Does anyone know of a way to automatically generate these classes, properties, and methods?
Thanks,
Mark Brown