Is there a way to get table info defined with DbModelBuilder?
something like:
entity.GetType().GetTableName()
Max
EDIT:
id like to implement following
public static class Helper
{
public string GetTableName(Type type) {
// ??
}
}
now i'd like to get table name by type
var type = someEntity.getType();
var sql = "delete from " + Helper.GetTableName(type) + " where id in (...)"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…