Пример #1
0
 /// <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);
 }
Пример #2
0
 public static ITableInfo GetConfig <T>(this ITableBuilder tableBuilder)
 {
     return(tableBuilder.GetConfig().Where(x => x.Type == typeof(T)).FirstOrDefault());
 }