This question is locked. New answers and comments are not allowed.
I have 15 tables in a database, are catalogs and follow the same structure:
id
key
Description
Should be separated, however I wonder if it's possible to create a generic class that stores in each according to the name of the catalog:
something like
DalCatalogoGenerico.SelectAll (CatalogName type);
{
using (....
return from items in db.Table ("CatalogName")
}
DalCatalogoGenerico.InsertOrUpdate (BoCatalogItem item, CatalogType type);
id
key
Description
Should be separated, however I wonder if it's possible to create a generic class that stores in each according to the name of the catalog:
something like
DalCatalogoGenerico.SelectAll (CatalogName type);
{
using (....
return from items in db.Table ("CatalogName")
}
DalCatalogoGenerico.InsertOrUpdate (BoCatalogItem item, CatalogType type);