public static string GetTableNameForType(Type type) { return(EntityTableNames.ContainsKey(type) ? EntityTableNames[type] : type.Name); }
public static void MapTableNameForType <T>(string tableName) { EntityTableNames.AddOrUpdate(typeof(T), tableName, (type, s) => tableName); }