/// <summary> /// Initializes a new instance of the <see cref="Engine"/> class. /// </summary> /// <param name="tableBuilder">The table builder.</param> public Engine(ITableBuilder tableBuilder) : this() { Tables = tableBuilder.GetConfig().ToDictionary(x => x.Type.FullName, x => x); }
public static ITableInfo GetConfig <T>(this ITableBuilder tableBuilder) { return(tableBuilder.GetConfig().Where(x => x.Type == typeof(T)).FirstOrDefault()); }