I'm using EF, and I've got the Entity Framework Power Tools extension, which lets me reverse engineer classes based on tables in a given database.
We have a rather extensive DB, with a lot of tables that I do not need to represent. Is there any simple way to select a subset of these, and reverse engineer only those?
If your database is SQL Server, or SQL Server CE 4.0 then you can use the "Entity Framework Reverse POCO Generator" available at visualstudiogallery.msdn.microsoft.com
It does table filtering through the use of TableFilterExclude
, TableFilterInclude
.
The way the filters work are as follows:
Example:
TableFilterExclude = new Regex("billing|report");
TableFilterInclude = new Regex("company");
Given the following tables:
Any table with billing or report in the name are immediately excluded. Any table with company in the name are included.
You are left with:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With