public static void Guard(Type type) { #if !NET35 if (type == typeof(System.Dynamic.ExpandoObject) || type == typeof(PocoExpando)) throw new InvalidOperationException("Can't use dynamic types with this method"); #endif }
public TableInfo TableInfoForType(Type type) { PocoDataFactory.Guard(type); var pocoDataBuilder = _pocoDatas.Get(type, () => BaseClassFalbackPocoDataBuilder(type)); return(pocoDataBuilder.BuildTableInfo()); }