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