Is there a way to get table information defined using DbModelBuilder?
sort of:
entity.GetType().GetTableName()
Max
EDIT:
id how to implement the following
public static class Helper
{
public string GetTableName(Type type) {
}
}
now I want to get the table name by type
var type = someEntity.getType();
var sql = "delete from " + Helper.GetTableName(type) + " where id in (...)"
source
share